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

Read attributes of elements from xml schema.

P: n/a
Is there any way through which attributes of elements along with their
default value and possible values can be retrieved from the schema
using C#.
Any help will really be appreciated.

Mar 15 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I am able to get the attributes by first compiling the schema and then
accessing elements.
But there is another problem now. The schema file (File1) i am using
includes another schema file(File2). The type of elements are defined
in File2 and when i compile the schema of File1 it gives an error that
the complex type used is not defined. So is there any thing that can be
done to compile schema such that included schema is compiled itself.

Mar 15 '06 #2

P: n/a
I am able to get the attributes by first compiling the schema and then
accessing elements.
But there is another problem now. The schema file (File1) i am using
includes another schema file(File2). The type of elements are defined
in File2 and when i compile the schema of File1 it gives an error that
the complex type used is not defined. So is there any thing that can be
done to compile schema such that included schema is compiled itself.

Mar 15 '06 #3

P: n/a
When you compile a schema using XmlSchemaSet in .NET 2.0 (or
XmlSchemaCollection in .NET 1.1), the included schema will automatically be
resolved and compiled.
Can you post the code that you are using to compile schema1?

Thanks,
Priya

"asjad" <al*******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
I am able to get the attributes by first compiling the schema and then
accessing elements.
But there is another problem now. The schema file (File1) i am using
includes another schema file(File2). The type of elements are defined
in File2 and when i compile the schema of File1 it gives an error that
the complex type used is not defined. So is there any thing that can be
done to compile schema such that included schema is compiled itself.

Mar 15 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.