> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Subject: RE: SAX to DOM
> That's a great suggestion Paul, but my input is not a stream. My input is
> SAXResult, which I get as a result of transformation.
> I know I can just use DOMResult
saxHandler.getDomDocument();
Please respond to xerces-j-user <[EMAIL PROTECTED]>; Please
respond to prb <[EMAIL PROTECTED]>
To: xerces-j-user <[EMAIL PROTECTED]>
cc:
Subject:RE: SAX to DOM
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL P
respond to xerces-j-user <[EMAIL PROTECTED]>
To: xerces-j-user <[EMAIL PROTECTED]>
cc:
Subject: Re: SAX to DOM
Or (and perhaps this is what was meant) is there any way to attach SAX
handlers to a dom parser, and get the events as the DOM is built?
ource(xr, is);
DOMResult dr = new DOMResult();
TransformerFactory.newInstance().newTransformer().transform(ss,dr);
Document doc = (Document) dr.getNode();
This way, you're not stuck with a non-standard SAX-to-DOM implementation.
(Hopefully, the XSLT processor handles namespaces, etc. properly.)
:
02/26/2002 01:25 Subject: SAX to DOM
PM
Hi all,
Is there a way in Xerces to build DOM from SAX?
(org.xml.sax.ContentHandler)
- vlad
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> [rpcee at operamail.com]
> Subject: sax to dom to sax
> How can I create a org.w3c.Document from a SAX producer, then
> generate SAX events from (traversing) that Document?
Is that what you really want to do, or do you want to simply have two
consumers of the SAX events, on
I'm not sure if this is exactly what you want to do but I did something
similar by doing this:
I wrote my own DocumentHandler that handled all of the SAX events I was
interested in and configured my SAXParser to use this handler. In the
document handler methods I just used an XMLSerializer to sen
How can I create a org.w3c.Document from a SAX producer, then generate SAX
events from (traversing) that Document. Does xerces support that directly or
do I use xalan/TrAX identity transform along the lines of transform(SAXSource,
DOMResult) then transform(DOMSource, SAXResult)?
Thanks, Rich
Research)
To: '[EMAIL PROTECTED]'
Sent: Wednesday, June 20, 2001 1:35
PM
Subject: SAX to DOM
I have to process very large XML files. I was
hoping to use SAX to run through the file, and build and discard many small
DOM trees as necessary. Does anyone know of any
I have to process very large XML files. I was
hoping to use SAX to run through the file, and build and discard many small DOM
trees as necessary. Does anyone know of any code that does
this?
Thanks.
11 matches
Mail list logo