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

刘强 vieri122 at gmail.com
Mon Oct 11 07:11:29 EDT 2010


please help me codesynthesis xsd team!

there is a mistake when I use the xsd serialization.

That is my code(so easy):
       auto_ptr<cstypeStatus>
h(csHostStatus("C:\\Users\\vieri122\\Desktop\\hostStatus.xml"));
       csHostStatus(cout,*h);

the consle print context is:

*<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<p1:csHostStatus xmlns:p1="URN:cantronic-system-4">

 <p1:authority/>

 <p1:status cpu="10" disk="1" mem="80" net="0.5"/>

</p1:csHostStatus>*
*
but the hostStatus.xml actual is:*

*<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<csHostStatus xmlns="URN:cantronic-system-4">
 <authority/>
 <status cpu="10" disk="1" mem="80" net="0.5"/>
</csHostStatus>*

may be there is diffrent thing that you find.* where is the "p1:" from? *
*
*
*that is all thank you.
*--
Best wishes for you and your family


More information about the xsd-users mailing list