This example assumes the following class is already on your CLASSPATH:
We can validate that segment of XML against a Schema with the following code:
When I attempt the above, I have troubles, which I've distilled to the following. In summary, for some reason, my groovy code can only see some of the constants (unfortunately, not the interesting ones) in XMLConstants.
Powered by a free Atlassian Confluence Open Source Project License granted to Codehaus. Evaluate Confluence today.