You'll need to construct an input source to pass to parseWithContext().
Check out the documentation for MemBufInputSource.  It should meet your
needs.  The MemParse sample demonstrates the technique.  It uses a SAX
parser, but the code is very similar with DOM.

-----Original Message-----
From: K.WIKI [mailto:kgou...@gmail.com] 
Sent: Friday, June 26, 2009 10:58 AM
To: c-users@xerces.apache.org
Subject: RE: Xerces and special caractere < >


Hi a gain , 


I try to parse a  XML file

what i'm doing know it's like this 

        XMLCh tempStr[100];
        XMLString::transcode("LS", tempStr, 99);
        DOMImplementation *impl =
DOMImplementationRegistry::getDOMImplementation(tempStr);
        DOMBuilder* parser =
((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE
_SYNCHRONOUS,
0);


        m_xmlDoc = 0;
        m_xmlDoc = parser->parseURI(m_strValue); //strValue =
"C:\\x1.xml";

until now this solution work .

But now , I want Parse a string , 

I try with parser->parseWithContext (...)

but I don't know how can add my string to parseWithContext ?? or there
is
another way to do this 


Thanks
-- 
View this message in context:
http://www.nabble.com/Xerces-and-special-caractere-%3C-%3E-tp24201194p24
221814.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

Reply via email to