Recent Posts
Recent Comments
Stefan on groovy XmlParser and XmlS… | |
akhikhl on Meet Gretty: advanced gradle p… | |
akhikhl on Meet Gretty: advanced gradle p… | |
nick on Meet Gretty: advanced gradle p… | |
SutoCom on AngularJS + JSTree = awes… |
Professional blog on groovy, gradle, Java, Javascript and other stuff.
I am absolutely astonished by functionality of groovy classes XmlParser and XmlSlurper. The both are similar to each other, with one important difference: XmlParser is more DOM-like (all data in memory), while XmlSlurper is more SAX-like (data parsing delayed until needed).
The most charming thing is how both work together with closures, regexps and collection methods. I am seriously thinking about shifting all XML-specific code to these facilities.
http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlParser
http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlSlurper
It’s in reality a great and useful piece of info. I’m happy that you simply shared
this helpful info with us. Please keep us informed
like this. Thank you for sharing.