Getting Groovy with XML

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值