ooxi/xml.c — pull request #6 by luksow (2013-10-09 23:24:37+00:00)
Title: Support for self-closing tags

Hi,

I'm using xml.c for my project and I've noticed that support for self-closing tags (eg. which is well-formed XML documnet by the way) is missing. Attempt to parse an XML with self-closed tag triggers errors and SEGV.

I wrote this small check to prevent such situations. Unfortunately it uses goto but alternative if-else makes following laaaaaarge block of code ident far to right which looks awful. Currently I don't know any better solutions for now but I'm opened to suggestions.

If you like the idea, tell me and we will work something out to push it upstream.

PS. Bravo for very readable, well-documented code, I was able to find error cause in couple of minutes :)