Skip to content

Instantly share code, notes, and snippets.

@ysb33r
Created October 13, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ysb33r/b271c2739fda8f69fee1 to your computer and use it in GitHub Desktop.
Save ysb33r/b271c2739fda8f69fee1 to your computer and use it in GitHub Desktop.
Processing XInclude with XmlSlurper
// Not quite sure if this will work as expected, but probably
// worth a trying if you want xi:include documents to be inlucdd.
def spf = javax.xml.parsers.SAXParserFactory.newInstance()
spf.namespaceAware = true
spf.setXIncludeAware ( true )
def parser = new XmlSlurper(spf.newSAXParser())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment