适用于大型XML的高效解析器 [英] Efficient Parser for large XMLs

查看:141
本文介绍了适用于大型XML的高效解析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要处理非常大的XML文件。我想将它们转换为可读的PDF,包括颜色,边框,图像,表格和字体。我的机器中没有很多资源,因此,我需要我的应用程序非常优化寻址内存和处理器。

I have very large XML files to process. I want to convert them to readable PDFs with colors, borders, images, tables and fonts. I don't have a lot of resources in my machine, thus, I need my application to be very optimal addressing memory and processor.

我做了一个简单的研究,让我对使用的技术有所了解,但我无法根据我的要求决定什么是最好的编程语言和API。我相信DOM不是一个选项,因为它消耗了大量内存,但是,带SAX解析器的Java是否符合我的要求?

I did a humble research to make my mind about the technology to use but I could not decide what is the best programming language and API for my requirements. I believe DOM is not an option because it consumes a lot of memory, but, would Java with SAX parser fulfill my requirements?

有些人还推荐使用Python进行XML解析。这样好吗?

Some people also recommended Python for XML parsing. Is it that good?

我很感激你的好意见。

推荐答案

SAX是非常好的解析器,但它已经过时了。

SAX is very good parser but it is outdated.

最近Oracle推出了新的Parser来有效地解析名为 Stax 的xml文件

Recently Oracle have launched new Parser to parse the xml files efficiently called Stax

* http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/tutorial/doc/SJSXP2.html *

附加链接还将显示所有解析器的比较以及内存利用率及其功能。

Attached link will also shows comparisons of all parsers along with memory utilization and its features.

谢谢,
Pavan

Thanks, Pavan

这篇关于适用于大型XML的高效解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆