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

XML serialization, Validating xml against schema

P: n/a

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"

I receive an object of type 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.

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 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.