Hi
My web service receives an object of type say MyObject. I want to
serialize this object,and then validate the xml against the main xsd.
When validation happens,
it should also validate against the included schema.
The main schema includes one more schema and the actual types are
described in the included schema.
eg.,
<xs:schema xmlns:t="http://myschemas/base" xmlns="">
<xs:import schemaLocation="base.xsd" />
<xs:element name="MyObject">
<xs:complexType>
<xs:sequence minOccurs="0">
<xs:element name="Name" type="t:Name" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
t is the namespace of the included schema and has definition for the
element "Name"
1. When I serialize, how do I specify the xsd for the xml?
2. How do I validate against multiple schemas
Regards
rjn
*** Sent via Developersdex
http://www.developersdex.com ***