By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,949 Members | 1,554 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,949 IT Pros & Developers. It's quick & easy.

XML serialization , validating against multiple schemas

P: n/a


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.

<xs:schema xmlns:t="http://myschemas/base" xmlns="">
<xs:import schemaLocation="base.xsd" />
<xs:element name="MyObject">
<xs:sequence minOccurs="0">
<xs:element name="Name" type="t:Name" />

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



*** Sent via Developersdex ***
Nov 12 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.