xml

the parser for data of the XML format.

object xml;

Example

$$('mylist').data.driver = webix.DataDriver.xml;
$$('mylist').load("data.xml");
// it is the same as
$$('mylist').load("data.xml","xml");

Related samples

Details

The object contains methods and properties for correct processing XML data. Processing logic can be changed, which allows using custom tags for hierarchical data.

Component data can be loaded during initialization with datasource specified by the data property:

var xml_data =
    '<data>
        <item id="1" title="The Shawshank Redemption" year="1994"  />
        <item id="2" title="The Godfather" year="1972"  />
    </data>';
 
webix.ui({
    view:"datatable",
    columns:[..],
    datatype:"xml",
    data: xml_data
});
See also
Back to top