[xsd-users] serialization output format (namespace related)
    Balasubramanyam, Shivakumar 
    sbalasub at qualcomm.com
       
    Fri Mar 21 15:11:48 EDT 2008
    
    
  
Hi,
 
I have elements in a namespace, lets say
 
<A xmlns="http://www.someurl.com/NS">
            <X/>
            <Y/>
            <Z/>
</A>
 
 
CS understands this format and parses the code correctly. Now when I
serialize this out, I need to provide a mapping like.
 
Xml_schema::namespace_infomap ns_map;
 
 
Ns_map["NS"] = "http://www.someurl.com/NS";
 
 
 
The xml output looks like this,
 
<NS:A>
            <NS:X/>
            <NS:Y/>
            <NS:Z/>
 
</NS:A>
 
 
Though this is perfectly valid, is it possible to serialize in the first
format as well? It is just more readable.
 
Thanks,
Shiva
 
 
 
    
    
More information about the xsd-users
mailing list