Patrick Brosi f4aba7058a readme | 6 anos atrás | |
---|---|---|
.gitignore | 7 anos atrás | |
CMakeLists.txt | 7 anos atrás | |
File.cpp | 6 anos atrás | |
File.h | 7 anos atrás | |
NamedEnts.h | 7 anos atrás | |
README.md | 6 anos atrás |
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
}