Patrick Brosi 3b763119d8 typo | 6 anni fa | |
---|---|---|
.gitignore | 7 anni fa | |
CMakeLists.txt | 7 anni fa | |
File.cpp | 6 anni fa | |
File.h | 7 anni fa | |
NamedEnts.h | 7 anni fa | |
README.md | 6 anni fa |
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 f("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
}