RE: Fatal errors with the Piccolo parser and invalid xml header

2006-08-03 Thread Cezar Andrei
Ken, There isn't a public API to reset the context piccolo instance. Please do file a bug with a repro in the JIRA so we can take a look at it. In the meantime, you can use XmlOptions setLoadUseXMLReader (XMLReader xmlReader) to use your own instance of Piccolo or any other SAX parser. Cezar >

Fatal errors with the Piccolo parser and invalid xml header

2006-08-03 Thread Ken Robinson
We've encountered a particularly nasty problem with the default piccolo parser and invalid xml headers. If the xml being parsed (via XmlObject.Factory.parse()) has a bad header (like ), a reasonable exception is thrown. This particular exception also appears to leave the piccolo instance in some

Declaring DTD From API

2006-08-03 Thread Kaan Yamanyar
Dear all,   In the xml’s i parsed I recieve some errors due to entities declared in dtd.   In the mail list i found the solution and it really works. It works if i add   “” to the XML file.   But i can not add this to all xml files.   One solution is to add this at runtime with ma