You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Many XML parsers have switches to turn on DTD validation.
Suppose we have the following XML:
We can parse this document with validation turned on using the XmlParser as follows:
Or using the XmlSlurper as follows:
Powered by a free Atlassian Confluence Open Source Project License granted to Codehaus. Evaluate Confluence today.