Hello everybody,
I try to use XPath to get value of node data in XML File.
I'm french so most of the time I prefer use  iso-8859-1 encoding in my 
XML Files. There are often accents in these files.

In my test, these line allow me to get the Node list corresponding to 
the Xpath
   const NodeRefListBase& nodeList = theEvaluator.selectNodeList(
                                  theHelper->getDOMSupport(),
                                  theContextNode,
                                  XalanDOMString(c_xpath).c_str(),
                                  
(_parsedSource.getDocument())->getDocumentElement());
 
The problem is that when I "cout" the XalanDOMString or CharVectroType 
(I try to use TranscodeToLocalCodePage() it's the same) I get from this 
Nodes, it's working only when there is no accent in the string otherwise 
the output is blank (it writes nothing).

As soon there is one accent or "strange" character, the output of the 
value for the Node is blank

So my questions are:
is this normal and is it a problem from XalanDOMString or something else?
How to take in account the encoding of the xml file if it's not by default?
I wait for your advices or ressources.

Thanks
Vincent

Reply via email to