xiaxiaocao/apk-parser — pull request #17 by soundmonster (2014-11-18 16:01:28+00:00)
Title: Proper namespace handling

This fix prevents truncation of XML if multiple namespaces are nested.

The bug boils down to this original XML:
```xml

something

something else

```

being encoded to binary XML, and then back to broken XML by apk-parser:
```xml

something

```

The end of a namespace is treated as the end of the whole XML, which is only true in some common cases such as `AndroidManifest.xml`, but breaks on various apps' layout XMLs etc.

This patch fixes this problem.