471,610 Members | 1,350 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

XML serialization , validating against multiple schemas

RJN

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 ***
Nov 12 '05 #1
0 1071

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Iain | last post: by
4 posts views Thread by agda.karlberg | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.