Command line programs like sax.SAXCount and dom.DOMCount from Xerces
D:\speaking\SD2000 East\dtds>java sax.SAXCount -v invalidhotcop.xml [Error] invalidhotcop.xml:10:9: The content of element type "SONG" must match "(TITLE,COMPOSER+,PRODUCER*,PUBLISHER*,LENGTH?,YEAR?,ARTIST+)". invalidhotcop.xml: 671 ms (7 elems, 0 attrs, 19 spaces, 59 chars) D:\speaking\SD2000 East\dtds>java sax.SAXCount -v validhotcop.xml validhotcop.xml: 621 ms (10 elems, 0 attrs, 28 spaces, 98 chars)
Online validators:
Browsers