Hi Steve,

I'm probably missing something very simple but I can't seem to get a XalanDOMString converted to a std::string. I'm using Xalan C++ in a Windows environment. My XML uses UTF-8 encoding.
You have to use the member function "transcode" to transcode the string to the local codepage. It doesn't matter, which kind of encoding your XML has. Do you want to transcode the string to the local codepage, or you think of storing the UTF-8 characters in the std::string?

I'm more familiar with the XercesDOM, but if you think of transcoding to the local codepage, try this code fragment (unverified):

string oLocalString( &(oMyXalanDOMString.transcode()) )

Hope this works and helps,

HolgeR

--
holger floerke d o c t r o n i c
email [EMAIL PROTECTED] information publishing + retrieval
phone +49 2222 9292 90 http://www.doctronic.de



Reply via email to