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