Jump to content

Recommended Posts

Posted

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!!!

Posted

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]

Posted

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>

Posted (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 by Will66
Posted (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 by toxicdav3
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...