Webix 6.2 DataCollection xml loading

when I try loading to load a DataCollection with xml data i get an error "Invalid JSON data for parsing"
example code : (This works in webix 6.1)


  • Hello,

    Could you please share a snippet where the issue can be spotted?

    As far as I can see, the described code works correctly: https://snippet.webix.com/nzgtmxtz

  • edited March 12

    I think the problem is the XML you are using is in a different format than the one I am using.
    My XML's format is like what you have here (https://docs.webix.com/datatable__supported_data_types.html#xml)
    < data >
    < item id="1" >
    < title > The Shawshank Redemption < /title >
    < votes > 678790 < /votes >
    < year > 1994 < /year >
    < /item >
    < /data >

    but you have it like

    < data >
    < item id="1" title="The Shawshank Redemption" year="1994" votes="678790" />
    < /data >

  • edited March 14

    Hi @MPaul

    I have double-checked the issue and, unfortunately, I can confirm the regression - the data is not parsed correctly in the inner logic of callback handling. And it does not depend on XML format.

    You can switch to promise.then as a stable alternative:

    tableData.load(url, "xml").then(function(){


    Anyway, we will provide a fix for callbacks. Thank you for reporting.

  • edited March 14

    Upd: We have just released Webix v6.2.2 where the fix is available: https://docs.webix.com/desktop__whats_new_6_2_x.html#622

  • Thank you Helga! Webix v6.2.2 workes perfectly.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion