ledigeine Posted November 26, 2012 Author Share Posted November 26, 2012 No i know that, i just named it root for this example in my xml its named something else. Just because its work related. I don't get why "//vers" worked tho, how does it know where vers is? does // just assume vers is right under the root node? Link to comment Share on other sites More sharing options...
jdelaney Posted November 26, 2012 Share Posted November 26, 2012 (edited) // are relative, while / are absolute...so if you use // it will find the node, no matter how far nested it is in the XML structure...if use /, then it must be one level belowsuggest the following read:http://www.w3schools.com/xpath/xpath_intro.asp Expression Description nodename Selects all nodes with the name "nodename" / Selects from the root node // Selects nodes in the document from the current node that match the selection no matter where they are . Selects the current node .. Selects the parent of the current node @ Selects attributes Edited November 26, 2012 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
ledigeine Posted November 26, 2012 Author Share Posted November 26, 2012 Ahh very good, you're a real piece of work. Thank you for the help. Looking at how you did it, i dont know why id use a UDF when autoit seems to be able to do things just fine on its own. Link to comment Share on other sites More sharing options...
jdelaney Posted November 26, 2012 Share Posted November 26, 2012 it's easier to reference functions then remember syntax/methods/etc, but again, I don't mind doing the direct calls IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now