Converts an xml-js Element into an XmlComponent tree.
This function recursively processes XML elements in JSON format (from xml-js)
and creates a tree of ImportedXmlComponent objects that match the structure
of the original XML.
Parameters
element: Element
The XML element in JSON representation from xml-js
Converts an xml-js Element into an XmlComponent tree.
This function recursively processes XML elements in JSON format (from xml-js) and creates a tree of ImportedXmlComponent objects that match the structure of the original XML.