[Biojava-l] SAX parser demo

jinchen at ufl.edu jinchen at ufl.edu
Mon Jun 30 11:07:48 EDT 2003


I don't know if you got the attachment in my previous email. It contains all DTD
files, sample xml and my simple blastparser file. If not, please check this one
out. I don't think DTD or sample xml has problem because they work for my parser.
Thanks,
Jin

Quoting David Huen <david.huen at ntlworld.com>:

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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.zip
Type: application/octet-stream
Size: 8021 bytes
Desc: not available
Url : http://pw600a.bioperl.org/pipermail/biojava-l/attachments/20030630/e2f3f82a/sample.lha


More information about the Biojava-l mailing list