From: "David Bertoni" <[email protected]>

XMLCh string[] = L"This is a standard unicode string";
Yes, on Windows, XMLCh is a typedef for wchar_t. It's not a class on any platform.
...

Thanks.

Then you should be fine, but you might want to be consistent and use XMLCh and XMLString everywhere, just in case.

Yes - I like to be consistent too. I would always pass an XMLCh * (rather than a wchar_t *) to a function which had that as a parameter, but in particular for example

const XMLCh myString[] = L"This is my string";

seems to be a much simpler way to define a constant UTF-16 string than using XMLString::transcode() and then having to free the memory later [and, though I can guess, I don't really understand 100% what it's doing].

Anyway thanks again for your assistance, I'm feeling I'm starting to get to know Xerces a bit now. [Enough that I've given up on MSXML!]

Dave
David Webber
Mozart Music Software
http://www.mozart.co.uk
For discussion and support see
http://www.mozart.co.uk/mozartists/mailinglist.htm

Reply via email to