rickd Posted June 20, 2007 Share Posted June 20, 2007 Hi, I am trying to work out how to read values from an XML file into a variable. This is an example of the XML file I am using. <Fall Brawl> <Wrestlers id=1> <Name>Hulk Hogan</Name> <Allegience>NWO</Allegience> </Wrestlers> <Wrestlers id=2> <Name>Boker T</Name> <Allegience>WCW</Allegience> </Wrestlers> </Fall Brawl> The part I want to read into my vaiable is "Hulk Hogan". I downloaded <_XMLDomWrapper.au3> but haven't been able to work out how to use the functions. Is the best XML udf to use? If I should use this one would someone be able to help me with using the functions by giving an example on how to read "Hulk Hogan" from the file. These seem to be the functions listed related to getting from the XML file. _XMLGetAllAttrib($sXPath,byRef $aNames,byRef $aValues,[$sQuery = ""]) _XMLGetAttrib($sXPath, $sAttrib, $sQuery = "") _XMLGetAllAttribIndex($path,$aNames,$aValues,[$sQuery="",$iNode=0]]) _XMLGetDomVersion() _XMLGetField($sPath) _XMLGetNodeCount($sPath,[sQuery="",$iType=$NODE_ELEMENT]]) Thanks for any help. 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