Hi Daniel,
A DOMNode represents the start tag, end tag, and everything in between
(or it's children). Are you wanting something more like a SAX parse?
John
Daniel Burrell wrote:
Hey,
I'm itterating through a DOMDocument.
the 'current' DOMNode is given by 'node'
What can I ask of node, to work out if I've got an <open> tag, or a <\open>
tag.
I want to act differently on opening and closing tags.
something like if (node->isOpentag()) { //;} else {//;}
also if I had <single/> would it recognise both open and close one after the
other?
Help much appreciated
--
John Snelson, Oracle Corporation http://snelson.org.uk/john
Berkeley DB XML: http://oracle.com/database/berkeley-db/xml
XQilla: http://xqilla.sourceforge.net