I' m using a code like the one show belowe to build a DOM document. DOMElement * pTestRef; string stmp; stmp = string( "this is a test: <> & ¥ " ); pTestRef = pDoc->createElement( X("TEST_REFERENCE_1") ); dtxt = pDoc->createTextNode( X( stmp.c_str())); pRoot->appendChild( pTestRef ); pTestRef->appendChild( dtxt );
The output I get is show belowe, where entities >,> and & a re corretly translated. <?xml version="1.0" encoding="UTF-16" standalone="no" ?> <Messaggio> ...... <TEST_REFERENCE_1>this is a test: <> & &#165; </TEST_REFERENCE_1> </Messaggio> What I can't do is to pass other entities in hex or decimal notation like ¥ for the euro character, because the first & which is part of the whole enitiy is translated separately. How is possible to tell to DOMWriter to leave as is ( without translate teh & char ) entities composed by more characters ( like ¥ , ¥ or < ) Regards, Enzo Arlati [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]