Closed aster94 closed 4 years ago
Hello @aster94
I haven't seen any issues when using the tree handler for your XML. If you've found some issue, please be specific.
This means I am making it wrong because I wasn't able to read it. How do you access the values with a colon? If I do
local xml2lua = require("xml2lua")
local handler = require("xmlhandler.tree")
local xml = xml2lua.loadFile("file.xml")
local parser = xml2lua.parser(handler)
parser:parse(xml)
local p= handler.x.rdf:li
The colon doesn't work
That is a lua-related issue. Just use:
local p = handler.x["rdf:li"]
You are completely right, that worked, sorry to bother you
No problem.
hello @manoelcampos I have a xml files that in the fields has some colon, is it possible to read it?
This is what i tried and below there is an example file:
But looks like that it is not working