[xsd-users] Problem with parsing xml documents containing Chinese characters

Boris Kolpackov boris at codesynthesis.com
Wed Mar 3 05:48:27 EST 2010


Hi Tony,

Feng Tony <fengtr at gmail.com> writes:

> In my last reply, the last question is I wonder if a name can be assigned to
> a const char* type as:
> const char * pChar = name;
> it's convenient, isn't it?

Such an implicit conversion would be dangerous. Which is also the reason
why std::string (from which xml_schema::string is derived) doesn't provide
it.


> May be one can implement it by creating a subclass of name, but I 
> hadn't tried it yet.

Yes, you can do it by customizing the mapping for the xsd:string XML 
Schema built-in type.

Boris



More information about the xsd-users mailing list