Jump to content

Recommended Posts

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

Link to post
Share on other sites

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 post
Share on other sites

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
Link to post
Share on other sites

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 post
Share on other sites

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