Checking the Invalid Document

$ jing  greeting.rng greeting3.xml
/Users/elharo/Documents/speaking/sd2005west/relaxng/examples/greeting3.xml:
3:6: error: unknown element "P"

Notice how completely decoupled the validation is from the instance document. We can validate any document against any schema. We do not need to specify the schema in the instance document as you must do with DTDs and often need to do with W3C schemas.


Previous | Next | Top | Cafe con Leche

Copyright 2005 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 18, 2005