[xsd-users] Parsing namespace problem

Boris Kolpackov boris at codesynthesis.com
Mon Mar 10 07:55:12 EDT 2008


Hi Fredrik,

Fredrik Elestedt <fredrik at elestedt.com> writes:

> no mapping provided for namespace '<ns>'.

This message is produced by the no_namespace_mapping exception
which is only thrown during serialization. Are you sure you get
this message during parsing?

If you get it during serialization, then the most likely cause
of this is that you don't provide the namespace-prefix mapping
for '<ns>' via the namespace_infomap. To correct this add the
following line to your serialization code:

map[""].name = "<ns>";

Where map is the instance of xml_schema::namespace_infomap.

Boris




More information about the xsd-users mailing list