XML as source for datatable

XML as source for datatable

renegreneg Posts: 2Questions: 0Answers: 0
edited November 2012 in General
Hi, how to use a XML file for the datatables script? I see in some examples .txt-files that are used, but I want my XML to load in the datatable plugin with ajax.

Replies

  • renegreneg Posts: 2Questions: 0Answers: 0
    Someone?
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    There are a number of discussions on this topic already in the forum:

    http://datatables.net/forums/discussion/2689
    http://www.datatables.net/forums/discussion/3326

    Among many others. The search bar at the top might be useful.

    You need to transform the XML to JSON. DataTables only accepts Javascript objects or HTML as data sources.

    If you are Ajax loading your data use fnServerData to override the Ajax call and transform the data.

    Allan
This discussion has been closed.