new xml2tree(divClass, file, impNodes, isAttributes, isJSON)
Main function. Specifies transformations that are needed for creating a JSON out of XML.
Parameters:
Name | Type | Description |
---|---|---|
divClass |
string | id of element that will contain a tree. |
file |
string | Path to XML/JSON file. |
impNodes |
array | Important nodes that should be shown on the second level of the tree. |
isAttributes |
boolean | Whether to show or not all additional attributes. |
isJSON |
boolean | Specifies type of the input (JSON/XML). |
- Source: