Creating XSD Dynamically in C Sharp
Posted
by Nave
on Stack Overflow
See other posts from Stack Overflow
or by Nave
Published on 2010-06-01T06:17:40Z
Indexed on
2010/06/01
6:23 UTC
Read the original article
Hit count: 357
I have two inputs. I get as input one XML file. I have to create an XSD file for this XML file. This XML file has tags which depend on another input. But that XML file should have certain tags for sure. For example, the XML file has the following structure :
<A>
Here, in this XML file, A,B and E tags should be present compulsarily. But the tags C and D inside the B tag and tags F and G inside the E tag depends on another input. So I shoud create an XSD dynamically(i know that A,B and E tags should be present and I do know about the other tags from the other input) and validate the input XML file against the XML Schema. Can someone temme how I can do this in C Sharp?
<B>
<C>...</C>
<D>...</D>
<E>
<F>...</F>
<G>...</G>
</E>
</B>
</A>
© Stack Overflow or respective owner