Call hasFeature("????", "3.0") to verify that
this is supported
Load the document in the usual way
Load the ASModel
Cast the Document to a DocumentAS
Attach the ASModel the DocumentAS using the
setAS() method
Invoke the DocumentAS's
validate() method
If the Document is not valid,
then a ASException is thrown with the code VALIDATION_ERR