Please use C++ and Linux ! Convert the Node struct in the sample code sample code(parsetool.h) to a proper class named XMLNode. Think about what additional methods and helper functions you might need and create prototypes for those too. Make sure to include comments in the .h file specifying the purpose, input, and output, of each function. Submit your .h file here. The code resource is here: //drive.google.com/drive/folders/1NhEKOOJBs-GE8HW6Z5eM-5bJ2KmOtU4P?usp=sharing parsetool.hhttps: #ifndef _PARSETOOLS_H_
Please use C++ and Linux !
Convert the Node struct in the sample code sample code(parsetool.h) to a proper class named XMLNode. Think about what additional methods and helper functions you might need and create prototypes for those too. Make sure to include comments in the .h file specifying the purpose, input, and output, of each function. Submit your .h file here.
The code resource is here: //drive.google.com/drive/folders/1NhEKOOJBs-GE8HW6Z5eM-5bJ2KmOtU4P?usp=sharing
parsetool.hhttps:
#ifndef _PARSETOOLS_H_
#define _PARSETOOLS_H_
#include<string>
#include<map>
#include<
using namespace std;
struct Node {
string name; // name of the node
map<string, string> properties; // any properties found in the node start tag
string content; // if the node has content between the start and end tag, put it here
vector<Node*> children; // if the node has children, create new Nodes and store their pointers here
};
Node parseline (string);
vector<string> split (string, char);
#endif
Step by step
Solved in 2 steps