Namespace Feature in FastInfoset SAXDocumentParser

A

au714

I'm trying to set the Namespace Feature in a FastInfoset
SAXDocumentParser. Seems simple enough.

I get a org.xml.sax.SAXNotSupportedException when I run the following
code:


public class FastInfosetTest {
public static void main(String[] args) {
try {
XMLReader saxReader = new SAXDocumentParser();
saxReader.setFeature(Features.NAMESPACES_FEATURE, true);
}
catch (Exception ex) {
ex.printStackTrace();
}
}
}


I welcome any ideas.

FGB
 
A

au714

I'll answer my own question...

SAXDocumentParser.setFeature() is coded to throw the exception when
called as in:
setFeature(Features.NAMESPACES_FEATURE, true);

So it works as coded.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top