How to parse my XML file?

View: New views
3 Messages — Rating Filter:   Alert me  

How to parse my XML file?

by Peter Ivarsson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: general-help@...


Re: How to parse my XML file?

by Elliotte Harold :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
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@...
For additional commands, e-mail: general-help@...


Re: How to parse my XML file?

by Joachim Zobel-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: general-help@...

LightInTheBox - Buy quality products at wholesale price