现在的位置: 首页 > 综合 > 正文

Getting Groovy with XML

2013年12月23日 ⁄ 综合 ⁄ 共 1116字 ⁄ 字号 评论关闭

source:http://www.theserverside.com/news/thread.tss?thread_id=28057

Posted By: Dion Almaer on August 13, 2004 @ 09:14 AM

Working with XML has been notoriously difficult. You normally don't want to drop to the level of SAX or DOM, so many open source projects have come around to help us out. Groovy has a lot of good XML support itself, and this article goes into the details of how to suck in, munge, and spew out XML.

Conclusion

XML is pretty cool stuff, and the more we use it, the more we need to think about how to make it easier to use. We need to think about ways to reduce the XML infrastructure work for ourselves and our customers.

Now, I don't seriously think that people will start replacing XSLT with Groovy code. But I do think that this article should spur your imagination with ideas about how you can use a flexible scripting language like Groovy to simplify your application and to make it more extensible. When integrating Groovy into your application is as simple as creating an interpreter and asking the class loader for a class, you have to think about all of the things you can do in the script layer as part of rapid prototyping, things that can then be brought back into the Java layer for efficiency.

Adding dynamic scripting-language support to your application is at your fingertips. Give it a go!

Getting Groovy with XML

抱歉!评论已关闭.