Hi Schalk, On Tue, Oct 13, 2015 at 10:47 PM, Schalk Cronjé <ysb...@gmail.com> wrote:
> With XmlSlurper it is possible to supply your own XMLReader or SAXParser. > I am not sure how XmlSlurper initialises the underlying SAXParser, but the > following might get you going > > def spf = javax.xml.parsers.SAXParserFactory.newInstance() > spf.namespaceAware = true > spf.setXIncludeAware ( true ) // for some reason spf.xIncludeAware = true > does not compile > def parser = new XmlSlurper(spf.newSAXParser()) > > I hope that helps. > > Thanks, this works for me. exactly what I was looking for. :) > > new XmlSlurper( namespaceAware : true, xIncludeAware : true ) > > > Such a constructor would be awesome to have. Thanks > > -- > Schalk W. Cronjé > Twitter / Ello / Toeter : @ysb33r > > -- Thank you Balachandran Sivakumar