Discussion:
How to convert the content in Dom pointer to string
(too old to reply)
Alamelu
2006-11-07 14:33:02 UTC
Permalink
How to convert the content in Dom pointer (IXMLDOMDocumentPtr) to string?

I am loading and XML using LoadXML method, i want to pass this xml as a string

Are they any API available to do so?

Regards,
Alamelu N
Martin Honnen
2006-11-07 15:02:17 UTC
Permalink
Post by Alamelu
How to convert the content in Dom pointer (IXMLDOMDocumentPtr) to string?
There is a property of nodes called xml which serializes the node to a
string. So with JavaScript you can simply do e.g.
xmlDocument.xml
See
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/31f7af53-6c3f-4a3e-a503-8aed9c4b270e.asp>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Alamelu
2006-11-07 15:22:02 UTC
Permalink
I want to do it in C++
Post by Martin Honnen
Post by Alamelu
How to convert the content in Dom pointer (IXMLDOMDocumentPtr) to string?
There is a property of nodes called xml which serializes the node to a
string. So with JavaScript you can simply do e.g.
xmlDocument.xml
See
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/31f7af53-6c3f-4a3e-a503-8aed9c4b270e.asp>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Martin Honnen
2006-11-07 15:41:57 UTC
Permalink
Post by Alamelu
I want to do it in C++
That is why I pointed you to the documentation. Have you read it?
Post by Alamelu
Post by Martin Honnen
See
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/31f7af53-6c3f-4a3e-a503-8aed9c4b270e.asp>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Loading...