Is there a built in function in Xercesc that will convert a standard
ascii string character to the XMLCh type?
A cast will not work in my application.

Here is the line of code:
if(node->hasAttribute(DOMString("person id").rawBuffer()))
data2.put("personid", node->getAttribute ("id"));

Here is the compiler error:
C:\DOMTest\DOMPrint.cpp(602) : error C2664: 'getAttribute' : cannot
convert parameter 1 from 'char [3]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast


thanks

Ed

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

Reply via email to