|
@@ -0,0 +1,21 @@
|
|
1
|
+# Pretty fast XML parser
|
|
2
|
+
|
|
3
|
+Simple XML parser with minimal copying. Designed for high-speed parsing of very large XML files (like OSM XML files).
|
|
4
|
+
|
|
5
|
+## Usage
|
|
6
|
+
|
|
7
|
+```
|
|
8
|
+#include "xml/File.h"
|
|
9
|
+
|
|
10
|
+[...]
|
|
11
|
+
|
|
12
|
+xml::File f("myfile.xml");
|
|
13
|
+
|
|
14
|
+while (xml.next()) {
|
|
15
|
+ const auto& cur = xml.get();
|
|
16
|
+ std::cout << cur.name << std::endl; // .name is the xml tag name
|
|
17
|
+ std::cout << cur.level << std::endl; // .level is the tags tree level
|
|
18
|
+ std::cout << cur.attrs.size() << std::endl; // .attrs contains the parameters
|
|
19
|
+}
|
|
20
|
+```
|
|
21
|
+
|