I'm confused by behavior I'm seeing when I use luaxml to parse an xml string. The lua doc states that calling print() on a table variable as such:
print(type(t))
print(t)
will result in output like this:
t2: table
t2: table: 0095CB98
However, when I use luaxml as such:
require "luaxml"
s = "<a> <first> 1st </first> <second> 2nd </second> </a>"
t = xml.eval(s)
print("t: ", type(t))
print("t: ", t)
I get the following output:
t: table
t: <a>
<first>1st</first>
<second>2nd</second>
</a>
Why does print(t) not return a result that looks like the first example?
Thanks,
-Gerald