problem with PHP simplexml and doxygen generated XML
| From: | hessiess at hessiess dot com | Date: | Fri, 03 Apr 2009 21:52:24 +0000 |
| Subject: | problem with PHP simplexml and doxygen generated XML | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-291052@lists.php.net to get a copy of this message | ||
I have bean trying to right a PHP script to generate XHTML code from the
class documentation xml files created by Doxygen(the HTML it outputs is
invalid, messy and virtually imposable to integrate into another web
page). One thing has bean causing problems, the tags which start with `@',
for example:
Code:
SimpleXMLElement Object
(
[@attributes] => Array
(
[kind] => function
[id] => classhello_1f06929bd13d07b414a8be07c6db88074
[prot] => private
[static] => no
[const] => no
[explicit] => no
[inline] => yes
[virt] => non-virtual
)
...
I cannot seam to find a way to access these with simplexml, the following
code generates a syntax error for example.
Code:
print_r($xml->compounddef->sectiondef->memberdef[1]->@attributes);
Any advice would be gratily appreciated.