aaronbdavis
03-28-2006, 12:34 PM
Is anyone familiar with XMLReader (http://us2.php.net/manual/en/ref.xmlreader.php) for PHP? I am playing around, trying to learn it.
I am trying to determine how to tell a complete tag apart from an opening tag.
It seems to read both<foo bar="1"> and <foo bar="2" /> as XMLReader::ELEMENT Nodes and does not seem to offer any intuitive way to recognize a closing slash in a stand-alone tag.
Any ideas?
Note: I have looked at the DOM extention for PHP5, but that does not seem to offer a way to manipulate arbitrary XML; you have to know what you are looking for, which is not what i am trying to do.
I am trying to determine how to tell a complete tag apart from an opening tag.
It seems to read both<foo bar="1"> and <foo bar="2" /> as XMLReader::ELEMENT Nodes and does not seem to offer any intuitive way to recognize a closing slash in a stand-alone tag.
Any ideas?
Note: I have looked at the DOM extention for PHP5, but that does not seem to offer a way to manipulate arbitrary XML; you have to know what you are looking for, which is not what i am trying to do.