Groups | Blog | Home
all groups > dotnet xml > december 2005 >

dotnet xml : load an existing buffer using IXMLDOMDocument


Polaris
12/5/2005 1:27:15 PM
Hi Experts:

Is there a way to load an existing buffer (an XML file) using
IXMLDOMDocumentPtr->load()?

I know it works for loading an XML file, but I need to load an existing
buffer with known length.

Thanks In Advance!
Polaris

Truong Hong Thi
12/5/2005 10:55:13 PM
Try loadXML instead.
Polaris
12/6/2005 10:10:01 PM
Thanks, that worked!

Is there a way to dump the current contents of IXMLDOMDocument to a buffer
in memory (not a file) ? "save" does not work, it always think the buffer I
passed to it is a file path. I'm trying not to use IStream.

Thanks
Polaris

[quoted text, click to view]

Truong Hong Thi
12/6/2005 11:16:07 PM
IXMLDOMDocument.xml property should contain the string.
AddThis Social Bookmark Button