Pretty fast XML parser.

Patrick Brosi 5081d32879 support text nodes, support comments, slightly better error messages vor 5 Jahren
.gitignore 7dd5a308e8 initial commit vor 7 Jahren
CMakeLists.txt 7dd5a308e8 initial commit vor 7 Jahren
File.cpp 5081d32879 support text nodes, support comments, slightly better error messages vor 5 Jahren
File.h 5081d32879 support text nodes, support comments, slightly better error messages vor 5 Jahren
NamedEnts.h 7dd5a308e8 initial commit vor 7 Jahren
README.md c0a14181a0 typo vor 6 Jahren

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
}