Patrick Brosi 759c9a9744 update | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
.gitignore | %!s(int64=7) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
pfxml.h | %!s(int64=5) %!d(string=hai) anos |
#include "pfxml.h"
[...]
pfxml::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
}