Has there been any standerd way of representing a XML document in a lua
table structure defined yet?
Here's a way I would like to see standardised in all languages that could
support it...
xmlRoot = {_tag_ = "person", version = "1.0";
{_tag_ = "name", format = "normal";
"Dougie Vipond",
},
{_tag_="occupation";
"Ice Warrior",
},
"Some other text",
}
(Lua automatically adds the [0], [1]... sequentially if you don't specify
an index explicity. The semicolon after the attributes allows you to mix
the string and integer indexing as shown on page 10 of the 5.0 manual. ).