lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I did a little test with '<root>some text<nested>text</nested>some more text</root>' and all I got back was { root={ ["$"]="some more text", nested={ ["$"]="text" } } }. The problem is the any xml element can have multiple elements of the same name/type. Also '<root><name>Tom</name><name>Dick</name><name>harry</name></root>' seems to return some unexpected results, { root={ name={ { ["$"] ="Tom" }, { ["$"]="Dick" }, { ["$"]="harry" } } } }.

Am I trying to use this code beyond what it was designed for?
Robots AND tentacales, now that's what I call class