getting processing instructions

"Steve Kaeser" <[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.