[Biojava-dev] Re: [Biojava-l] how to use BlastXMLParser
Thomas Down
thomas at derkholm.net
Tue Jun 24 10:49:38 EDT 2003
Once upon a time, David Huen wrote:
> On Monday 23 Jun 2003 7:07 am, jinchen at ufl.edu wrote:
> > Greetings,
> >
> > I wonder how to use BlastXMLParser? I don't know where I can set my XML
> > filename and how to get parser result. Where can I get a sample file
> > using BlastXMLParser?
> >
> OK, I will write an example for this parser.
>
> I noticed that JAXP has come out since the last time I handled this code.
> Does StAX work with the preferred JAXP 1.0 style of XML parsing yet (ie.
> DefaultHandler or HandlerBase derived adaptor class)? If so, I really
> should do it in the new style rather than the old way of doing SAX parsing.
I don't quite understand what you mean here -- JAXP has been around
for a long time now, and BioJava has used it since release 1.1
for creating XML parsers. If you want to update StAX so that
SAX2StAXAdapter extends DefaultHandler, I guess that doesn't
do any harm, and saves a line or so of code. But I've always found
it easier to get the XMLReader and do things in the normal SAX
way.
Thomas.
More information about the biojava-dev
mailing list