Most XSLT processors bulid some data model of the document regardless of
the form of the input. So even if you fire SAX events to the XSLT processor
I would expect that you would still run out of memory for very large
documents.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [email protected]
E-mail: [email protected]

ruwired <[email protected]> wrote on 01/21/2009 11:30:56 AM:

> I'm using XSL to get the text I want into a dat file.  What do I use for
an
> XSLT processor with Xerces?  Saxon?
>
> Thanks.
>
> MeBigFatGuy wrote:
> >
> > Use SAX of course
> >
> > http://xerces.apache.org/xerces2-j/samples-sax.html
> >
> > -----Original Message-----
> > From: "ruwired"
> > Sent: Tuesday, January 20, 2009 5:04pm
> > To: [email protected]
> > Subject: Parsing a large XML file in Xerces
> >
> >
> > Currently I'm transforming from the command line with Xalan.
> > Example:  java -ms1024m -mx1024m org.apache.xalan.xslt.Process -in
> > WebCrd.xml -xsl webcrd_EmpHist.xsl -out i_emphist.dat -INCREMENTAL
> >
> > Now I'm trying to do the same exact process with Xerces.
> > It doesn't seem like Xerces has a similar incremental option...
> > Is there a way to parse a large file (500+mb) in a quick way that also
> > doesn't run the system out of memory?
> > I'm wondering how can I get Xerces to parse an input file
"incrementally"
> > like Xalan?
> >
> > I'm very new at all this so any ideas, solutions, or general help on
where
> > to get started would be greatly appreciated.
> > --
> > View this message in context:
> > http://www.nabble.com/Parsing-a-large-XML-file-in-Xerces-
> tp21572644p21572644.html
> > Sent from the Xerces - J - Dev mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
>
> --
> View this message in context: http://www.nabble.com/Parsing-a-large-
> XML-file-in-Xerces-tp21572644p21586777.html
> Sent from the Xerces - J - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

Reply via email to