Problems parsing XML

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
cluster28
Forum Newbie
Posts: 10
Joined: Mon May 24, 2010 5:29 am

Problems parsing XML

Post by cluster28 »

Why this class (http://es.php.net/manual/es/class.domdocument.php#93900) doesn´t parse nodes with same name?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Problems parsing XML

Post by Christopher »

Probably because it uses the node name as the array key. You could probably modify that code by checking if a key is set and converting the value for that key to an array.
(#10850)
Post Reply