AbstractTransformer or AbstractSAXTransformer?

2003-03-08 Thread gv
I am writing a custom transformer that has to read all
the XML into a data structure, manipulate the
structure, then finally write everything in the
structure back out.

From where would I call my manipulation code? Looks
like I need to use AbstractSAXTransformer, but can
this be done with AbstractTransformer?

Thanks,
John



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AbstractTransformer or AbstractSAXTransformer?

2003-03-08 Thread Reinhard Pötz
John,

You could extend both transformers. The AbstractSAXTransformer has
methods to record SAX events which should make it easier for you.
But first I would check if it can be done using a XSLT stylesheet.

Regards,
Reinhard

 -Original Message-
 From: gv [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, March 08, 2003 1:28 PM
 To: [EMAIL PROTECTED]
 Subject: AbstractTransformer or AbstractSAXTransformer?
 
 
 I am writing a custom transformer that has to read all
 the XML into a data structure, manipulate the
 structure, then finally write everything in the
 structure back out.
 
 From where would I call my manipulation code? Looks
 like I need to use AbstractSAXTransformer, but can
 this be done with AbstractTransformer?
 
 Thanks,
 John
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more 
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AbstractTransformer or AbstractSAXTransformer?

2003-03-08 Thread Jeff Turner
On Sat, Mar 08, 2003 at 04:27:41AM -0800, gv wrote:
 I am writing a custom transformer that has to read all
 the XML into a data structure, manipulate the
 structure, then finally write everything in the
 structure back out.

DOMTransformer gives you a nice DOM to play with.

--Jeff

 From where would I call my manipulation code? Looks
 like I need to use AbstractSAXTransformer, but can
 this be done with AbstractTransformer?
 
 Thanks,
 John

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]