Best XML C ++ library, quick setup

I was wondering what is the best XML library in C ++ (I use Visual Studio), given that quick setup is crucial. Basically, I want to create a file to save annotations in various .avi files.

Thanks in advance.

+4
source share
3 answers

You can get TinyXML in minutes.

+5
source

TinyXML is simple enough for almost all of your goals (unless you are worried about having the entire xml view in memory), but other libraries offer more important features:

  • RapidXML is made really really fast. It is used in the boost :: property_tree library for the read / write functions of xml files. If you already use boost, using direct boost :: property_tree might be a good idea if necessary, as you can already easily use it using a simple interface.
  • pugiXML is referred to as a good replacement for RapidXML by someone on the mailing list, but I don't know the difference.
  • Xerces-C ++ is designed so that you can manipulate at a high level in xml, for example, using xsd files, but in fact it is very hard on speed and memory size ...
  • wrappers around classic C xml libraries (like LibXML2) can be interesting if you don't find what you are looking for the previous ones ...
+2
source

I used Xerces C ++ in the past, and it was relatively painless to work and work.

I am currently using MSXML and it hurts.

0
source

Source: https://habr.com/ru/post/1312096/


All Articles