Closed v1993 closed 4 years ago
<proto>void <name>glEnableIndexedEXT</name></proto>
is not a valid XML.
void
is neither a tag, attribute or value.
Is it really invalid? XML validators report this as valid string and I highly doubt people would use invalid XML for such things. Other libraries (not for lua sadly) parse this well too.
It may be valid, but at least it is a strange XML. Check issue #35. There may be XML parsers that accept this type of XML, but some such as Java parsers don't.
Hey @v1993
Check the latest release and PR #40.
Maybe it fixes your issue.
@manoelcampos No, my test code from the first message still fails with exactly same result. I've upgraded to xml2lua 1.3-5 using luarocks.
It was just a try. Sorry that it doesn't work. But your xml doesn't have a common structure.
Tried to parse official OpenGL specifications and met a major problem: function names aren't preserved. Example to reproduce the problem:
Result:
{"proto":"void"}