toxicdav3 Posted April 8, 2008 Share Posted April 8, 2008 I got this xml file which i need to get the values out and into arrays and variables. <program id='pad.exe' name='DrawPad'> <label id='Open' /> <label id='Save' /> <label id='Write' /> <label id='Draw' /> <label id='Exit' /> </program> $label (array) $exe $name I have tried using the XML DOM Wrapper but without success Any help would be appreciated!!! Layered Networks - Hosting Solutions Link to comment Share on other sites More sharing options...
TheCuz Posted April 8, 2008 Share Posted April 8, 2008 Post the code that you used so that we can see what you are doing.... [font="Verdana"]People who say it cannot be done should not interrupt those who are doing it. - George Benard Shaw[/font] Link to comment Share on other sites More sharing options...
weaponx Posted April 8, 2008 Share Posted April 8, 2008 You are missing some key components of your XML. Header, root node, and are is there more than one program node? Header: <?xml version="1.0" encoding="utf-8" ?> Root node (??): <programs> <program> <label id='Open' /> <label id='Save' /> <label id='Write' /> <label id='Draw' /> <label id='Exit' /> </program> <program> ... </program> <program> ... </program> <programs> Link to comment Share on other sites More sharing options...
toxicdav3 Posted April 8, 2008 Author Share Posted April 8, 2008 (edited) There is no header, thats pretty much it. Its the exact same structure just i put in some example values and names. I don't know rly how to extract the values in autoit. Edited April 8, 2008 by toxicdav3 Layered Networks - Hosting Solutions Link to comment Share on other sites More sharing options...
Will66 Posted April 8, 2008 Share Posted April 8, 2008 (edited) There is no header, thats pretty much it. Its the exact same structure just i put in some example values and names. I don't know rly how to extract the values in autoit.xpath xpath examples Edited April 8, 2008 by Will66 Link to comment Share on other sites More sharing options...
toxicdav3 Posted April 8, 2008 Author Share Posted April 8, 2008 (edited) Can you guys help me out getting the label ids into a array, I don't completely know how xml works but i can't change it. I got the biggest headache and dun want to learn xml right now. <program id='pad.exe' name='DrawPad'> <label id='Open' /> <label id='Save' /> <label id='Write' /> <label id='Draw' /> <label id='Exit' /> </program> Edited April 8, 2008 by toxicdav3 Layered Networks - Hosting Solutions Link to comment Share on other sites More sharing options...
Will66 Posted April 8, 2008 Share Posted April 8, 2008 Can you guys help me out getting the label ids into a array, I don't completely know how xml works but i can't change it. I got the biggest headache and dun want to learn xml right now. <program id='pad.exe' name='DrawPad'> <label id='Open' /> <label id='Save' /> <label id='Write' /> <label id='Draw' /> <label id='Exit' /> </program> its not valid xml....try using FileOpen 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