logo       


Re: xmlwriter and xmlfilter: msg#00009

Subject: Re: xmlwriter and xmlfilter
Luca Dall'Olio wrote:

Second one:
How can I send the XmlWriter events through an XmlFilter (I would prefer

You mean, like by making the writer be the consumer of the events
produced by that XmlReader?

Passing such events "through" an XMLFilter makes no sense to me.
XmlWriter produces text files.  It doesn't care where the SAX
input events come from.  And on the other end, the output is
always (!) going to be text, not SAX events.


not to use the Gnu Jaxp pipeline package: I would like to write implementation independent code as far as possible), since XmlWriter does not implement the XmlReader interface? Should I extend the XmlWriter to do implement it?

If you like.  "gnu.xml.pipeline" can be used with other implementations,
any dependencies on AElfred2 and the DOM2 code there should all be very
easily configured out if you want to use some other implementation.

When I've done streaming with SAX I've wanted to avoid the XmlFilter
classes as thoroughly as possible; they can't make up its mind whether
it's a data sink or a data source, and that's a pretty basic design
constraint.  You may think differently though.

That said ... the reason XmlWriter is a free-standing class is very
specifically so it avoids lots of overhead.

- Dave


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe