Need help with XML parsing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
iceblizzard
Forum Newbie
Posts: 1
Joined: Wed Dec 22, 2010 8:34 am

Need help with XML parsing

Post by iceblizzard »

Basically I'm reading a local xml file, extracting data, and passing array over to a MySql function.
Also, when each record is extracted I need to know the full parent-child category it was listed under.

for example:

Code: Select all

<root>
    <node value="first"/>
    <node value="second"/>
     <header label="Numbers">
          <header label="Roman numerals">
              <node value="I"/>
              <node value="XV"/>
           </header>
           <node value="1"/>
           <node value="10"/>
      </header>
</root>
User avatar
manohoo
Forum Contributor
Posts: 201
Joined: Wed Dec 23, 2009 12:28 pm

Re: Need help with XML parsing

Post by manohoo »

Where's your PHP code?
Post Reply