谁能告诉我有digestor-rules.xml 有什么用
我知道它用于解析 xml 数据并将其转换为对象。在企业应用程序中使用它是否有意义。请帮我 。
I know it is used for parsing xml data and converting them into objects.Does that make any sense in using this in an enterprise application. Please help me .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Commons Digester 有点老式,但它仍然有它的用处。
如果您有大量 XML 流,由于内存限制,将其全部读入 JAXB 等绑定框架中可能是不切实际的。 Commons Digester 允许您动态地从 XML 流构建对象。但请注意,JAXB 还对 XML 流提供一些支持(请参阅此处 ),虽然它最终不像 Commons Digester 那样灵活,但它可能会更容易使用。
Commons Digester is a bit old-fashioned, but it still has its uses.
In cases where you have large streams of XML, it can be impractical to read it all into a binding framework like JAXB, due to memory constraints. Commons Digester allows you to build objects from the XML stream on the fly. Note, however, that JAXB also has some support for XML streaming (see here), and while it's not ultimately as flexible as Commons Digester, it's probably going to be easier to live with.