Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
languagebash
themeEmacs
titleBeispiel zum Erzeugen von XML
local xml2lua = require("xml2lua")
local incidents = {
  Table = {
    _attr = { name='Einsatzdaten' },   
    Data = {
      { _attr={ type='STRING', header='Einsatznummer' } },
      { _attr={ type='STRING', header='Einsatzstichwort' } }, 
      { _attr={ type='STRING', header='Meldebild' } }
    },
    Row = {
      Column = {
        { _attr={ value='1234567890' } },
        { _attr={ value='B2.5' } }, 
        { _attr={ value='Rauchentwicklung in / aus Gebäude unklar' } }
      }
    }
  }
}

print("Incidents\n")
xml2lua.printable(people)

print()
print("Incident RepresentationEinsätze als XML Repräsentation\n")
print(xml2lua.toXml(incidents, "incidents"))


Verwandte Artikel

Inhalt nach Stichwort
showLabelsfalse
max5
spacesFAQ
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("kb-how-to-article","user-scripts") and type = "page" and space = "FAQ"
labelskb-how-to-article

...