Reading xml configuration files in C ++

How can I read the following configuration file in C ++. Is there any support in STL. I can not afford to use other third-party libraries.

<?xml version="1.0" encoding="utf-8"?> 
<appSettings>
    <add key="FileType" value="doc"/>  
    <add key="FileLength" value="102234"/>   
</appSettings>

I do not use managed C ++.

+3
source share
3 answers

STL does not support xml parsing. If you decide not to use a third-party library, then your only option is to write the parser manually, this seems like a pretty bad idea. Why can't you afford to use third-party libraries?

+6
source

TinyXML . XML-, XML-. ++, . , STL.

+8

This is a link from a similar topic in StackOverflow.
Using Boost to read and write XML files. That also recommends Tiny, as recommended by Freerick Raabe.

0
source

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


All Articles