I am trying to create an XSD schema which will validate the following xml.
<Item ItemGUID="3F2504E0-4F89-11D3-9A0C-0305E82C3301">The name of the item</Item>
I want to validate the max length of the attribute "ItemGUID" to 36 characters and "The name of the item" to a max 25 characters.
How can it be validated to satisfy the above condition using the xsd schema?
With XML Schema, you can do something like this:
I haven't tried it, but if this doesn't work it should be very close to what you need.