Patrick Brosi c0a14181a0 typo | 6 vuotta sitten | |
---|---|---|
.gitignore | 7 vuotta sitten | |
CMakeLists.txt | 7 vuotta sitten | |
File.cpp | 6 vuotta sitten | |
File.h | 7 vuotta sitten | |
NamedEnts.h | 7 vuotta sitten | |
README.md | 6 vuotta sitten |
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
}