XML validation.
I have an Object Pascal application which generates XML similar to this one:
<book>
<name>Anna Karenina</name>
<author>Leo Tolstoy</author>
<publisher>The Russian Messenger</publisher>
<price>$16.79</price>
</book>
Which is the best way to add code which validates the above XML (in the generating app) ?
I would like to make sure that:
A book must have an author.
A book price cannot exceed $100
TIA