Thank you.
Your assistance has really helped me.
Regards.
Ideshini.
-----Original Message-----
From: Bill Schindler [mailto:[EMAIL PROTECTED]]
Sent: 18 April 2001 20:49
To: [EMAIL PROTECTED]
Subject: Re: Extracting structure's as char*
On Wednesday, April 18, 2001, at 10:43 AM, Ideshini Naidoo wrote:
> Does anyone know how to extract an entire structure from a DOM tree
> and return the structure in XML format in a char *.
You can do that by editing the DOMPrintFormatTarget class in the
DOMPrint sample. (Look in the DOMPrint.cpp file.) Add a buffer and
replace the cout.write() with code to append the transcoded text as
it's passed into DOMPrintFormatTarget::writeChars().
Or you can change the cout.write() to write to a different stream.
Be sure to set up and initialize the stream in
DOMPrintFormatTarget's constructor. (Or pass in a reference to an
initialized stream when you construct the FormatTarget object.)
Just be aware that the data passed to writeChars() may not be NULL
terminated. Don't use the "<<" operator to write the data!
--Bill
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail may contain confidential information and may be legally
privileged and is intended only for the person to whom it is addressed. If
you are not the intended recipient, you are notified that you may not use,
distribute or copy this document in any manner whatsoever. Kindly also
notify the sender immediately by telephone, and delete the e-mail. When
addressed to Internet Solutions' clients any opinion or advice contained in
this e-mail is subject to the terms and conditions expressed in any
applicable terms of business or client engagement letter. Internet
Solutions does not accept liability for any damage, loss or expense arising
from this e-mail and/or from the accessing of any files attached to this
e-mail.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]