Jump to content

[SOLVED] troubles with DOMDocument


caedo

Recommended Posts

Hi,

 

I'm using DOMDocument for parsing an XML file. In some point of the algorithm I need to read all the attributes an specific node has and put them into an array. I want to make this function as generic as possible, so I can use it with any XML file.

 

Is there a way to read the attributes not by the id?

 

pd: I know the getAttribute() function works with the id but that doenst works with what I want to do.

 

 

Thanks in advance

 

Caedo.

 

Link to comment
https://forums.phpfreaks.com/topic/112619-solved-troubles-with-domdocument/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.