Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ XML library for use under Windows

Tags:

c++

windows

xml

Under Windows to parse XML one can use the COM based XML API but I wondered if there is any C++ XML libraries out there I can use for this purpose, without needing to get into the intricacies of COM?

like image 734
Tony The Lion Avatar asked May 24 '26 21:05

Tony The Lion


2 Answers

I suggest pugixml. Pugixml is Light-weight, simple and fast XML parser for C++ with XPath support

Here is the quick start guide, and here is a benchmark, notice how only AsmXML is faster than pugixml.

like image 108
Cristian Adam Avatar answered May 26 '26 12:05

Cristian Adam


AFAIK, the most efficient open-source parser library for C, C#, C++, and Java nowadays is VTD-XML. In terms of performance, it beats DOM, SAX, and XPath. I has converted the library to Delphi for my private project, and I found that VTD-XML is just like what it claims. See VTD-XML Benchmark.

like image 26
Vantomex Avatar answered May 26 '26 12:05

Vantomex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!