> So, I have XML that is in windows-1252. When parsing this
> document Xerces is calling startElement() method which takes
> XMLCh* as a parameter.
> 
> I need to be able to convert this to a char*. Since the
> XMLString::transcode() function is returning garbage, I need
> to create my own transcoder. What do I need to transcode it to?

Why do you need to convert it from UTF-16 to something else?  What do you 
plan to do with the converted string?

> If I am to call the transcodeTo or transcodeFrom functions, I need
> to know the number of XMLChs in the input parameter. How can I know
> the length of XMLCh *?

They are null-terminated, so use XMLString::stringLen().

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to