Complete a program that is designed to read an XMl file, follow an XPath to a selected node, and then list all of the text content (ignoring attributes) in the subtree rooted at the selected node, in the order that the text appeared within the original XML file.
You will be provided with the bulk of the code for this program, including the input processing to read XML and convert it into a tree structure (declared in node.h).
Your task is to supply the functions declared in extraction.h:
A function to walk the tree starting from its root, following an XPath to a desired node. A function to extract all of the text (in the leaves of the tree) in the tree, combining it into a single string with one….