manoelcampos / xml2lua

XML Parser written entirely in Lua that works for Lua 5.1+. Convert XML to and from Lua Tables 🌖💱
MIT License
287 stars 73 forks source link

Cant use equal sign in attributes #8

Closed albrela closed 6 years ago

albrela commented 6 years ago

Hi manoel, thanks for your good work. If I try to use equal signs as a part of attributes, so I receive a failure as shown below:

part of my .xml

<BasicType Name="Some tag name">
     <String Length="10" FixedLength="True" DefaultValue="Tag1=" />
</BasicType>

output

Exception in thread "main" com.naef.jnlua.LuaRuntimeException: ...\src\xml2lua.lua:268: Unbalanced Tag (/BasicType) [char=5871]

Is there a work around for this case?

My Version

manoelcampos commented 6 years ago

Hi @crea-Tec Try the latest release 1.1-1, but probably it has the same issue. I'll take a look at it by the end of the week. Thanks for reporting.

manoelcampos commented 6 years ago

Hi @crea-Tec I've just fixed the issue. Download the new version using luarocks. Thanks for reporting.

albrela commented 6 years ago

Thank you for this.