Pretty fast XML parser.

Patrick Brosi 00e19bfbdc check for existence of posix_fadvise() 6 jaren geleden
.gitignore 7dd5a308e8 initial commit 7 jaren geleden
CMakeLists.txt 7dd5a308e8 initial commit 7 jaren geleden
File.cpp 00e19bfbdc check for existence of posix_fadvise() 6 jaren geleden
File.h 7dd5a308e8 initial commit 7 jaren geleden
NamedEnts.h 7dd5a308e8 initial commit 7 jaren geleden
README.md c0a14181a0 typo 6 jaren geleden

README.md

Pretty fast XML parser

Simple XML parser with minimal copying. Designed for high-speed parsing of very large XML files (like OSM XML files).

Usage

#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
}