开发者

What are the major methods / libraries available for parsing XML?

I'm performing a trade study evaluating various methods for parsing XML for a large system. I'm looking at both analytical and actual relative performance (space & time) on multiple platforms (iOS, Linux, OS X, Windows). My current c开发者_高级运维andidate evaluation list of methods and libraries is the following:

  • SAX
    • NSXMLParser (iOS)
  • Document Object Model
    • System.Xml.XmlDocument (.NET)
  • Pull Parsing
    • System.Xml.XmlReader (.NET)
    • XmlLite: A Small and Fast XML Parser for Native C++
  • Data Binding
    • Java API for XML Binding (JAXB)
    • XML Schema Definition (XSD) Tool (.NET)
  • XML as a Data Type
    • Language Integrated Query (LINQ) to XML (.NET)
  • Virtual Token Descriptor (VTD)

Am I missing any particularly valuable tools, or different parsing methods?


Altova XMLSpy provides an approach to build high-performance DTD or Schema-specific XML readers and writers.

I have no experience with the product, but have built prototypes for similar tools, because I think the basic premise is extremely good.

EDIT: A comment requested a pointer to "how this is done". Dunno how they do it (know how I did it :), but here's a link that talks about at the Altova site: http://www.altova.com/xmlspy/xml-code-generation.html


You are missing Linq-To-Xml/XDocument which provides an alternative to XmlDocument/DOM .


You should add RapidXML and these:

Ultra-portable, small complex config file library in ANSI C?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜