Patrick Brosi bdbfb7a18c set POSIX_FADV_SEQUENTIAL if not present | лет назад: 6 | |
---|---|---|
.gitignore | лет назад: 7 | |
CMakeLists.txt | лет назад: 7 | |
File.cpp | лет назад: 6 | |
File.h | лет назад: 7 | |
NamedEnts.h | лет назад: 7 | |
README.md | лет назад: 6 |
Simple XML parser with minimal copying. Designed for high-speed parsing of very large XML files (like OSM XML files).
#include "xml/File.h"
[...]
xml::File xml("myfile.xml");
while (xml.next()) {
const auto& cur = xml.get();
std::cout << cur.name << std::endl; // .name is the xml tag name
std::cout << cur.level << std::endl; // .level is the tags tree level
std::cout << cur.attrs.size() << std::endl; // .attrs contains the parameters
}