So, from your message I'd guess you're not using chains of filters
as described in [1].

If you use these chains, it's the SAX events which propagate across 
the interfaces.  You only parse once.  And it doesn't require multiple
threads or buffering.  It's brilliant.  :-)

Rgds,
David

[1] http://java.sun.com/webservices/docs/ea2/tutorial/doc/JAXPXSLT6.html#65400

-----Original Message-----
From: Step [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 5:07 AM
To: [EMAIL PROTECTED]
Subject: XML Filters



Suppose I have two filters.

1: I pipeline these two filters and parse
my xml in one shot.

2: Parse the xml using filter 1 and obtain
an xml. Parse this resulting xml using filter 2.

What are the pros and cons of using these two
approaches?

The only reason that I can think of for not
parsing again is the performance in the case
of large xml, (and may be an overhead of generating
the intermediate xml).


Are there any other issues here?

thanks,
--st.




---------------------------------------------------------------------
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]

Reply via email to