Pretty fast XML parser.

Patrick Brosi f4aba7058a readme %!s(int64=6) %!d(string=hai) anos
.gitignore 7dd5a308e8 initial commit %!s(int64=7) %!d(string=hai) anos
CMakeLists.txt 7dd5a308e8 initial commit %!s(int64=7) %!d(string=hai) anos
File.cpp 8fd20b56be error if file couldnt be opened %!s(int64=6) %!d(string=hai) anos
File.h 7dd5a308e8 initial commit %!s(int64=7) %!d(string=hai) anos
NamedEnts.h 7dd5a308e8 initial commit %!s(int64=7) %!d(string=hai) anos
README.md f4aba7058a readme %!s(int64=6) %!d(string=hai) anos

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