Hi all, Not sure if this is the right board, but here goes.
I have a small XML document, and currently I am validating it be hand.
I have 2 question: 1) would it (in your opionon) be quicker/more efficent to use SAX to validate it? 2)With XML Scheme is there a difference between an element or arrtibute being empty (ie it is optional) and that element having a value which is empty (equal to "")?
posted 8 years ago
Definitely it would be faster to do this validation using program than doing the same manually.
If an attribute is mandatory then the element has to have that attribute or else it would fail in validation.Even empty attribute would do.
If attribute sex is mandatory for element name.then the following is valid.
You can find some code example in XML faq for validation.