xml2lua
xml2lua copied to clipboard
XML Parser written entirely in Lua that works for Lua 5.1+. Convert XML to and from Lua Tables 🌖💱
I'm trying to serialize an XML document that has a table inside a table, like this: ```xml local tb = { _attr = { requestType = "Initial"}, fingerprint = fingerprint,...
The skipWS option has no effect on any leading and trailing white-space inside a CDATA construct. Is this deliberate? "Regular" text nodes are affected by that option, as expected. CDATA...
Any XML declaration gets lost when parsing XML. Also, a ROOT type node is never created when using the DOM handler. As I understand it, the first tree node should...
I would like to have support for parsing empty-elements example: ```xml ``` https://www.w3.org/TR/xml/#dt-empty
xmlhandler.tree parsing of ... ``` T M ``` ... will reduce the manufacturer_node to {manufacturer = 'M'}. When reducing the device_node, it will have two children ({[1] = 'T', manufacturer...
The given table: ```lua tag = { array = { item = { _attr = { myattr = "something1" } }, item = { _attr = { myattr = "something2"...
Trying to parse the below xml - there are embedded xml elements as some of the values. Those embedded xml values are randomly encoded or decoded - sometimes partially encoded/decoded...
when i parse multiple xml files, the additional files seem to get added to the same table and there doesn't seem to be a way to clear the results
Use case : create a lua table and convert it to XML with duplicated tags based on `xml2lua/example3.lua` we could expect : ``` local tag = { tag1={ 1='A', 2='B'...