David Bertoni wrote:
This is probably the most-asked question on the list, so you can search
the archives for XMLString::transcode() to find lots of information.
I did check but I only found 1 match and it wasn't much help. Not sure if the
gmane search is working properly.
The most efficient thing to do is to construct static strings at compile
time, if you can. Take a look at the constants in
src/xercesc/util/XMLUni.cpp for some examples.
The next most efficient thing to do, if you will only know the set of
strings you're looking for at run-time, is to use a local code page
transcoder to convert your strings from the local code page to UTF-16
strings. For that, you can use one of the overloads of
XMLString::transcode(). Once you've done that, you can use
XMLString::equals().
Thanks I'll check it out.
Mark