Coker, Jonathan M wrote:
Sorry - I am still stumbling over some of the terminology. Inside of one of my functions I call getNodeValue() and it returns a
XalanDOMString.  My function is returning an STL string (reference or
pointer).  I am trying to convert that XalanDOMString to a C++ STL
string.  With Xerces I was using the static 'transcode' methods in
XMLString and I was trying to find something similar for a Xalan string.

Well, as I said, you can use XalanDOMString::transcode(), or you can use XalanDOMString::c_str() and pass that to XMLString::transcode(), but those calls will fail if the string you're transcoding has characters that are not representable in the local code page.

You should either transcode to UTF-8, or even keep strings in UTF-16 for as along as possible, if you don't want to lose data.

Dave

Reply via email to