Okay
  Public Ticket #2084043
XML Data Source
Closed

Comments

  • Thomas started the conversation

    Hello,

    we need the plugin to show the XML data source in a perfect table.

    Source File: http://www.golf.at/exports/clubdaten/turniere.asp?userid=webmaster&password=Hd7Bbd7Z!&token=1234

    The problem is that the plugin show only the first lines from the xml file:

    <code>000</code>
    <description>OK</description>
    <jahr>2019</jahr>
    <tournamentcount>27</tournamentcount>


    But we need the next lines in the table:

    <turniernr>282</turniernr>
    <jahr>2019</jahr>
    <datum>06.06.2019</datum>
    <name>Avocado 9 Loch Serie</name>
    <rundenanzahl>1</rundenanzahl>
    <vorgabenwirksam>ja</vorgabenwirksam>
    <sichtbar>ja</sichtbar>
    <info/>
    <modus>9-Loch Stableford</modus>
    <turnierart>9 Loch Stableford</turnierart>
    <platz>Attersee Golfclub Weyregg</platz>
    <clubname>Attersee GolfClub Weyregg</clubname>
    <nennungsschluss>Turniertag 12:00 Uhr</nennungsschluss>
    <maxplayers>40</maxplayers>
    <hcplimit>-54</hcplimit>
    <art>Offen für Gäste</art>
    <nennungen>ja</nennungen>
    <startzeiten>ja</startzeiten>
    <ergebnisse>ja</ergebnisse>
    <dokumente/>
    <online_nennungen>
    <aktiv>nein</aktiv>
    <mitglieder>nein</mitglieder>
    <gaeste>nein</gaeste>

    </online_nennungen>


    All lines between the <tournament>...</tournament>.

    Please write back what i must du to show this lines in the table.


    Br, Thomas



  •  2,496
    Aleksandar replied

    Hello Thomas.

    Thank you for your purchase.

    When working with XML format please note that wpDataTables presently accepts this, and only this, format of XML (see the example): A single root node with several child nodes (one level), where each child node will be treated as a row, and the child row attributes as cells. If your software does not return this format you would need to prepare, as an example, some type of a PHP adapter to return one of the formats that wpDataTables would accept.

    I see you have several Tournaments under the second root node, and that is why it will not work even if you exclude the first one. You need to adjust the format so it matches the example provided above, for wpDataTables to be able to read it.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables