For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > September 2004 > DOMXML get unknown Attributes?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DOMXML get unknown Attributes?
Nikolai Onken

2004-09-22, 3:56 pm

Hey List,

I was wondering how I can get all Attributes of a XML-Tag without
knowing them. The XML could look like following:

<plugin>
<args level="1" depth="2"/>
</plugin>
<plugin>
<args permission="23"/>
</plugin>

Now both plugins use different Attributes in the args tags and the
program doesn't know them. Is there a way to get them? Put them into
an array? I am using PHP5
Thanks a lot and best regards,

Nikolai Onken
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com