- Dokumentacja
- Funkcje wspólne
- xmlNodeGetAttributes
Funkcja
xmlNodeGetAttributes
Zwraca wszystkie atrybuty węzła jako tabelę nazwa → wartość.
Składnia
table xmlNodeGetAttributes(xmlnode node)Argumenty
nodexmlnode- Węzeł.
Zwraca
Tabela atrybutów albo false.
Przykład
local root = xmlLoadString('<spawn x="1" y="2" z="3" skin="0"/>')
for name, value in pairs(xmlNodeGetAttributes(root)) do outputDebugString(name .. "=" .. value) end
xmlUnloadFile(root)