Skip to end of metadata
Go to start of metadata

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:

  • No labels

1 Comment

  1. 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

    code
    results

    With Java

    code
    results