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
au714@osfn.org - 29 Dec 2005 15:39 GMT
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.
> I'm trying to set the Namespace Feature in a FastInfoset
> SAXDocumentParser. Seems simple enough.
[quoted text clipped - 17 lines]
>
> FGB