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="">

<tag2>some data</tag2>

</tag1>

 

 

But if  have this:

 

<?xml version="1.0" encoding="utf-8"?>

<?proc-instr action="">

<tag1>

<tag2>some data</tag2>

</tag1>

 

 

the Iterator doesn’t find any nodes…

 

Any suggestions?

 

Thanks,

 

Steve

Reply via email to