Re: How to create DOMDocument from XML string.

2009-07-24 Thread Rupanu Ranjaneswar
,output); thanks & regardsrupanu --- On Fri, 7/24/09, Alberto Massari wrote: From: Alberto Massari Subject: Re: How to create DOMDocument from XML string. To: c-users@xerces.apache.org Date: Friday, July 24, 2009, 5:18 AM See the MemParse example for an example on how to parse an XML string,

RE: How to create DOMDocument from XML string.

2009-07-24 Thread Rupanu Ranjaneswar
domparser->parse(input); /// --- On Fri, 7/24/09, John Lilley wrote: From: John Lilley Subject: RE: How to create DOMDocument from XML string. To: "c-users@xerces.apache.org" Date: Friday, July 24, 2009, 9:28 AM Have you tried something like this: XN::

RE: How to create DOMDocument from XML string.

2009-07-24 Thread John Lilley
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

Re: How to create DOMDocument from XML string.

2009-07-24 Thread Alberto Massari
See the MemParse example for an example on how to parse an XML string, and DOMPrint to see how to force a specific encoding when saving to a file. Alberto Rupanu Ranjaneswar wrote: Hi , I was able to resolve the previous issue searching in the mail archieves.However UTF-16 to UTF-8 transcodin