all groups > dotnet xml > april 2007 >
You're in the

dotnet xml

group:

Reading the XSD to get the Elements and Attributes for the XML


Reading the XSD to get the Elements and Attributes for the XML tdpriya1984 NO[at]SPAM gmail.com
4/19/2007 9:39:57 PM
dotnet xml:
Hi,
Is it possible to fetch the Elements and Attributes in XML by reading
the XSD??
I want to develop a application whose Elements and Attributes changes
when i change my Schema. The Elements and Attributes will be displayed
in the Form to fetch the user input and the new node will be appended
to the existing XML.
Any help regarding this would be of great help.

Thanks in Advance.
Re: Reading the XSD to get the Elements and Attributes for the XML Martin Honnen
4/20/2007 12:00:00 AM
[quoted text, click to view]

..NET implements a schema object model (SOM) that allows you to traverse
an XSD schema or a collection of XSD schemas. Look at XmlSchema and
XmlSchemaSet classes and have a look at this blog article on how to walk
the SOM
<http://blogs.msdn.com/stan_kitsis/archive/2005/08/06/448572.aspx>
with .NET 2.0.

--

Martin Honnen --- MVP XML
AddThis Social Bookmark Button