You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Peter Ivarsson <Pe...@cybercomgroup.com> on 2007/10/17 13:44:23 UTC

How to parse my XML file?

Hi,

I have a rather big XML-file with customers I want to parse.
I only need to use some of the elements from the customers XML-file.
The output from the java program should be several TEXT-files.

What technique do you recommend me to use to solve this problem in an efficient way?
(SAX, DOM, Digester, …)

Best regards
/ Peter Ivarsson

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Re: How to parse my XML file?

Posted by Elliotte Harold <el...@metalab.unc.edu>.
Peter Ivarsson wrote:
> Hi,
> 
> I have a rather big XML-file with customers I want to parse.
> I only need to use some of the elements from the customers XML-file.
> The output from the java program should be several TEXT-files.
> 
> What technique do you recommend me to use to solve this problem in an efficient way?
> (SAX, DOM, Digester, …)
> 

XSLT unless you have problems; in that case SAX.

-- 
Elliotte Rusty Harold  elharo@metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Re: How to parse my XML file?

Posted by Joachim Zobel <jz...@heute-morgen.de>.
Am Mittwoch, den 17.10.2007, 13:44 +0200 schrieb Peter Ivarsson:
> I have a rather big XML-file with customers I want to parse.
> I only need to use some of the elements from the customers XML-file.
> The output from the java program should be several TEXT-files.

May be STX is what you need:
http://joost.sourceforge.net/

Hth,
Joachim



---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org