Checking Validity

To check validity you pass the document through a validating parser which should report any errors it finds. For example,

% java XJParse -p invalidhotcop.xml
Error at (file file:/D:/speaking/SD99EAST/dtds/invalidhotcop.xml, line 10, char
8): Element "<SONG>" is not valid because it does not follow the rule, "(TITLE,C
invalidhotcop.xml: 281 ms

A valid document:

% java XJParse -p validhotcop.xml
validhotcop.xml: 170 ms

Previous | Next | Top | Cafe con Leche

Copyright 1999, 2000 Elliotte Rusty Harold
Last Modified October 8, 1999