[Biodevelopers] XML for huge DB?
Dan Bolser
dmb at mrc-dunn.cam.ac.uk
Thu Jul 31 18:30:30 EDT 2003
>
> You need to parse your XML in a "streaming" fashion. If you are using
> Java, for most people, that means using SAX. You should write a
> ContentHandler
> (org.xml.sax package) that gathers your results. The SAX
> ContentHandler is
> a call-back style API and so programming can get complicated--but that
> isn't necessarily
> true.
Thanks again, I am using perl, so I have found a solution with
expat (not SAX I guess?) - This can stream to event handlers,
like HSP's :)
Cheers,
Dan.
>
> Many C/C++ APIs have a similar call-back style APIs. Basically, you
> want to interface
> the parser directly and get the essential information as efficiently as
> possible.
>
> If you plan to use Java 2, check out version 1.4.x and the
> javax.xml.parsers and
> org.xml.sax packages.
>
> Alex Milowski FAX: (707) 598-7649
> alex at milowski.com
>
> "The excellence of grammar as a guide is proportional to the paucity of
> the
> inflexions, i.e. to the degree of analysis effected by the language
> considered."
>
> Bertrand Russell in a footnote of Principles of Mathematics
>
>
> _______________________________________________
> Biodevelopers mailing list
> Biodevelopers at bioinformatics.org
> https://bioinformatics.org/mailman/listinfo/biodevelopers
>
More information about the Biodevelopers
mailing list