Hi Guys,
I have to deal with WRITING some XML files. Reading from JSON/CSV is fine and sorted and File IO isn’t the issue. Trying to find a suitable library function that works with Corona to create XML, ideally from a Corona Table…
Any ideas?
Peter
      
    Hi Guys,
I have to deal with WRITING some XML files. Reading from JSON/CSV is fine and sorted and File IO isn’t the issue. Trying to find a suitable library function that works with Corona to create XML, ideally from a Corona Table…
Any ideas?
Peter
You want to Create XML from table, or parse it from an XML source?
I gather you want to convert a table like json.encode?
~
This looks interesting as a “pure” Lua possibility. Even includes a handy PDF.
https://github.com/michal-h21/LuaXML
~
Thanks so much for your googlefu. I had done a lot of looking and found several versions of the LuaXML libraries and many other options but the others were not pure LUA.
Yes, unfortunately I need to create XML from data in a table. Will give this a ago today.
Appreciate the help.
Peter
I found quite a few parsers, but yeah this was the only “pure” Lua one that would encode. But man, XML, I’m so sorry. ;p
~
You want to Create XML from table, or parse it from an XML source?
I gather you want to convert a table like json.encode?
~
This looks interesting as a “pure” Lua possibility. Even includes a handy PDF.
https://github.com/michal-h21/LuaXML
~
Thanks so much for your googlefu. I had done a lot of looking and found several versions of the LuaXML libraries and many other options but the others were not pure LUA.
Yes, unfortunately I need to create XML from data in a table. Will give this a ago today.
Appreciate the help.
Peter
I found quite a few parsers, but yeah this was the only “pure” Lua one that would encode. But man, XML, I’m so sorry. ;p
~