Have you tried something like this:

XN::XercesDOMParser parser;
// Adapt buffer to a form that can be read by the parser.
XN::MemBufInputSource inputSource(
        (const XMLByte *)str,
        (int)strlen(str),
        "system"                // fake "system ID"
);
parser.parse(inputSource);
doc = parser.adoptDocument();


-----Original Message-----
From: Rupanu Ranjaneswar [mailto:[email protected]] 
Sent: Friday, July 24, 2009 2:57 AM
To: [email protected]
Subject: How to create DOMDocument from XML string.

Hi , I was able to resolve the previous issue searching in the mail 
archieves.However UTF-16 to UTF-8 transcoding doesn't seem to be working.
I have a XMl string  (whole content of an XML file), please tell me how do i 
create a DOMDocument out of it. parse function of XercesDOMParser doesn't seem 
to be parsing an XML string..

regards rupanu.


      

Reply via email to