[xsd-users] Serialization Problem with namespace

Boris Kolpackov boris at codesynthesis.com
Wed Mar 5 04:37:06 EST 2008


Hi,

In the future please keep your replies CC'ed to the xsd-users mailing
list. This way other developers who may have experienced a similar
problem can provide you with a solution. Plus questions and answers
will be archived and available to others with similar problems.

kun lv <lvkun2006 at gmail.com> writes:

> But if i remove these code??I will get exception:
> xsd::cxx::tree::no_namespace_mapping<char>

This means your schema has a target namespace. If you want your
XML to not have any 'xmlns' attributes then the only way to do
it is to get rid of the target namespace in your schema (remove
the targetNamespace attribute).

Boris




More information about the xsd-users mailing list