[Biojava-l] SAX parser demo

David Huen david.huen at ntlworld.com
Sun Jun 29 20:58:14 EDT 2003


On Sunday 29 Jun 2003 7:00 pm, jinchen at ufl.edu wrote:
> Sorry for bothering on this topic again. I have one sample in my zip
> file. My simple XML parser simply works for my sample xml. However, I got
> this error when I try to use your parser:
>
> staxenv org.biojava.bio.program.sax.blastxml.BlastXMLParser at 1cd2e5f
> org.xml.sax.SAXParseException: The markup declarations contained or
> pointed to by the document type declaration must be well-formed.
>         at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1060) at
> org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScann
>er.java:651) at
> org.apache.xerces.framework.XMLDTDScanner.scanDecls(XMLDTDScanner.java:15
>23) at
> org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumen
>tScanner.java:2199) at
> org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanne
>r.java:2152) at
> org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(
>XMLDocumentScanner.java:883) at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScann
>er.java:381) at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952) at
> org.biojava.bio.program.sax.blastxml.BlastXMLParserFacade.parse(BlastXMLP
>arserFacade.java:167) at BlastParser3.main(BlastParser3.java:47)
>
> Would you like to let me know why?

Er, I can only speculate that your haven't got the DTDs or that the DTDs 
have been corrupted in some way.  Could you append the first few lines of 
your file please?

Thanks,
David Huen


More information about the Biojava-l mailing list