stoicflame/enunciate — pull request #30 by martin-magakian (2013-10-06 10:05:39+00:00)
Title: ENUNCIATE-748 objc parser: fix bug self-close xml without wrapper

The Objective-C parser is not able to handle XML properly when parsing a XML with self-closing tag without a wrapper.

Example without wrapper (bug):

1

3

Example with wrapper (working):

1

3

Without wapping, the generated parser will call 2 times `xmlTextReaderAdvanceToNextStartOrEndElement` when it find a self-closing tag.

As a result it jump the self-close tag and an extra element.

Following [TristanBrismontier](https://github.com/stoicflame/enunciate/pull/17) work, I implemented a unit test who reproduce the bug and correct it.