Question: I need an answer in python with explanation on provided solution. A company that does a lot of XML processing needs a class for easier



I need an answer in python with explanation on provided solution.
A company that does a lot of XML processing needs a class for easier navigation of XML documents. The XML documents always have unique tag names at a particular nesting level and XML nodes don't have unnecessary whitespaces between them. Complete the Xm/Navigator class so that passing an XML document as a string to the constructor converts the XML document into a dynamic object, in which the nodes are accessible as the object's properties and the inner XML is accessible by the text property. At the moment, the text property works for the root level of XMLS, and the root tag is added as a property. Complete the class so that it works recursively for XMLs with any level. For example, the below code creates a dynamic object for the given XML
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
