Показаны сообщения с ярлыком XmlParser. Показать все сообщения
Показаны сообщения с ярлыком XmlParser. Показать все сообщения
среда, 10 июля 2013 г.
пятница, 5 июля 2013 г.
groovy XmlParser and XmlSlurper
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
Подписаться на:
Сообщения (Atom)