xml_parse() - Accessing attributes of empty elements
| From: | nastySprite | Date: | Mon, 24 Jul 2000 18:36:27 +0000 |
| Subject: | xml_parse() - Accessing attributes of empty elements | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-7943@lists.php.net to get a copy of this message | ||
Hello,
I am currently writing a script using the xml_parse functions of PHP3.
Now how do I access attributes of empty elements?
For example:
<ELEMENT ATTR="test"/>
Using the endElement function of
xml_set_element_handler(parser,startElement,endElement) I cannot read any
attribute, because the function is not passed an $attrs like "startElement".
Thanks,
Mike