Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Check the values of Attribute of two different XML files using XSD

$
0
0

Hello,

I have two xml files as below.

I want to check the attribute Id should have same value in both xml files.

Can I do it suing XSD ?

<!-- Library.xml --><?xml version="1.0" encoding="utf-8"?><Library><Book Id="1"/></Library><!-- ######################################## -->

<!-- Book.xml --><?xml version="1.0" encoding="utf-8"?><Books><XmlBook Id="1"/></Books>

Id attribute value for XmlBook and  Book should be always same. Can I check or validate it using XSD or Can I put restriction using XSD for this values ?

Thanks in Adavnce

Regards,

Ani





Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>