Patrick Brosi 6 年之前
父節點
當前提交
f4aba7058a
共有 1 個文件被更改,包括 21 次插入0 次删除
  1. 21 0
      README.md

+ 21 - 0
README.md

@@ -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
+