[xsd-users] please help me codesynthesis xsd team!

Boris Kolpackov boris at codesynthesis.com
Mon Oct 11 12:39:04 EDT 2010


Hi,

vieri122 at gmail.com writes:

> Subject: please help me codesynthesis xsd team!

Please see item #3 in the posting guidelines:

http://www.codesynthesis.com/support/posting-guidelines.xhtml


> <p1:csHostStatus xmlns:p1="URN:cantronic-system-4">
>
> [...]
>
> <csHostStatus xmlns="URN:cantronic-system-4">
> 
> where is the "p1:" from?

It is an automatically-assigned prefix for the "URN:cantronic-system-4"
XML namespace. If you want to get the same output as the original
document, try something like this:

xml_schema::namespace_infomap map;

map[""].name = "URN:cantronic-system-4";

csHostStatus(cout,*h, map);

For more information, see Section 6.1, "Namespace and Schema Information"
in the C++/Tree Mapping Getting Started Guide:

http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/guide/#6.1

Boris



More information about the xsd-users mailing list