lua-users home
lua-l archive

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


On Tue, Oct 15, 2013 at 11:15 PM, Sean Conner <sean@conman.org> wrote:

        -- convert the table to an XML object
        doc = xml.new(doc)
        print(doc)


Thanks, that did the trick. Normally when I try running print on a table I need to use ipairs() to print its contents. What is unique about the doc object (which is essentially a table in lua if I understand correctly) that allows you to use the print() function directly? Can I convert the doc object to a string and keep the formatting as well?

Thanks



 
  -spc