Patrick Brosi b87c826236 replace remaining dummy error with exception | vor 6 Jahren | |
---|---|---|
.gitignore | vor 7 Jahren | |
CMakeLists.txt | vor 7 Jahren | |
File.cpp | vor 6 Jahren | |
File.h | vor 7 Jahren | |
NamedEnts.h | vor 7 Jahren | |
README.md | vor 6 Jahren |
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
}