You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Bagepalli, Kiran" <kb...@informatica.com> on 2002/09/19 03:52:44 UTC
DOMWriter
Is there a mechanism to write the DOM tree using the DOMWriter to a stream.
I have a output stream with a fixed buffer size and I would like to flush it
when the buffer is full and obtain more data into the buffer. I have
implementation of my own to write DOM but was looking if DOMWriter has
something. Can I derive from XMLFormatTarget and do something.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: DOMWriter
Posted by Gareth Reakes <ga...@decisionsoft.com>.
Hi,
yes you can derive from XMLFormatTarget. I would create a
constructor that takes your buffer. I would then override writeChars and in
there do a check on whether you need to flush your buffer.
Gareth
On Wed, 18 Sep 2002, Bagepalli, Kiran wrote:
> Is there a mechanism to write the DOM tree using the DOMWriter to a stream.
> I have a output stream with a fixed buffer size and I would like to flush it
> when the buffer is full and obtain more data into the buffer. I have
> implementation of my own to write DOM but was looking if DOMWriter has
> something. Can I derive from XMLFormatTarget and do something.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
--
Gareth Reakes, Head of Product Development
DecisionSoft Ltd. http://www.decisionsoft.com
Office: +44 (0) 1865 203192
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org