-
Notifications
You must be signed in to change notification settings - Fork 5
XML Parser
Jaysmito Mukherjee edited this page Nov 9, 2021
·
1 revision
#include "lexpp.h"
#include "extensions/xml_parser.h"
std::shared_ptr<lexpp::XMLParser> parser = std::make_shared<lexpp::XMLParser>(data);
lexpp::lex(parser);
std::cout << parser->get_root_node();
struct XMLDocumentNode{
std::string name = "";
std::string value = "";
std::vector<XMLDocumentNode*> children;
std::vector<std::pair<std::string, std::string>> attributes;
};
Thanks for Reading this ❤️ !
If you have questions contact me via discord : https://discord.gg/R9eMZUwxtu