xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Lilley <jlil...@datalever.com>
Subject RE: How to create DOMDocument from XML string.
Date Fri, 24 Jul 2009 13:28:35 GMT
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:rupanu_pal@yahoo.com] 
Sent: Friday, July 24, 2009 2:57 AM
To: c-users@xerces.apache.org
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.


      

Mime
View raw message