You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by Steve Kaeser <sk...@tradegate2000.com> on 2004/03/19 07:04:02 UTC
getting processing instructions
Hi.
I'm using a DOMNodeIterator with a filter to get the processing instructions
from an XML file. It works if I have a file that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<tag1>
<?proc-instr action="something"?>
<tag2>some data</tag2>
</tag1>
But if have this:
<?xml version="1.0" encoding="utf-8"?>
<?proc-instr action="something"?>
<tag1>
<tag2>some data</tag2>
</tag1>
the Iterator doesn't find any nodes.
Any suggestions?
Thanks,
Steve