XML is not formatted in such a way that jsTree can include it.
http://www.jstree.com/documentation/xml_data
Two types of XML structures are supported: flat and nested:
<root>
<item id="root_1" parent_id="0" state="closed">
<content>
<name><![CDATA[Node 1]]></name>
</content>
</item>
<item id="node_2" parent_id="root_1">
<content>
<name><![CDATA[Node 2]]></name>
</content>
</item>
</root>
<root>
<item id="xml_1">
<content><name><![CDATA[Root node 1]]></name></content>
<item id="xml_2">
<content><name><![CDATA[Child node 1]]></name></content>
</item>
</item>
</root>
An alternative is to transfer the XML document and convert it to JSON, and then convert it to a valid JSON or HTML data format.
MMeah source
share