Hi all,

i have a problem. i'm using xerces 2.3.0 to parse xml data.
everything works fine.
But then i found a string (content of a tag) that is not parsed in the right 
way i think.

this is the tag which is part of a xml file (UTF-8):

<test>
If Engine sp. different from Clutch sp.
- Setting of a “Clutch position sensor failure” and relative recovery 
activation
If Engine sp. = Clutch sp. = Gear shift aborted
</test>



and this is what i get after using the transcode() method


If Engine sp. different from Clutch sp.
- Setting of a 
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ


these are the features i set for the parser

  g_pToParser->setFeature(xercesc::XMLUni::fgDOMNamespaces, true);
  g_pToParser->setFeature(xercesc::XMLUni::fgXercesSchema,true);
  g_pToParser->setFeature(xercesc::XMLUni::fgXercesSchemaFullChecking, true);

  g_pToParser->setFeature(xercesc::XMLUni::fgDOMValidation, true);
  
  // enable datatype normalization - default is off
  g_pToParser->setFeature(xercesc::XMLUni::fgDOMDatatypeNormalization, true);



and this is the code which should transcode the xml string:

xercesc::DOMNode* pToChild = pToNode->getFirstChild();
const XMLCh* pToString = pToChild->getNodeValue();
LPTSTR pToChar = xercesc::XMLString::transcode(pToString);
setContent(pToChar);
....//release




 Any help is very welcome,

 Mirko

Reply via email to