How to use XSD in parts !?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello everyone.
This question was asked in C# forum but I was redirected here for better response.
I have an XML and a corresponding XSD against which I check my XML.
Now, I have another XML file which is actually present as a single node in my earlier XML file, so instead of writing another XSD I would like to use only that part of XSD where I have this node mentioned.
Is there any way I can check my XML file against a part of the XSD?

Let me put it this way...
I have two XML files.
File1.xml
<Setting_Type1>
<Setting_Type2>

File2.xml
<Setting_Type2>

As you can see, second file contains only a part (just one of the nodes from File1.xml) of the first XML.

I have an xsd for File1.xml which obviously contains check for
<Setting_Type1>
<Setting_Type2>

Can I use the same xsd to check File2.xml as well !?

Thanks in advance :)



View the full article
 
Back
Top