This example assumes the following class is already on your CLASSPATH:
XmlExamples.groovy
We can validate that segment of XML against a Schema with the following code:
Labels
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:
1 Comment
Hide/Show CommentsFeb 25, 2008
Steve Jones
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.
With Groovy
With Java