diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-03 16:04:27 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-03 16:04:27 +0100 |
commit | 7d79852c8403a8882061480cfb524724b84857ec (patch) | |
tree | f5c33e5753ce99199ebc26639299549e4ff5f510 /src/de/gultsch/chat/xml/XmlReader.java | |
parent | 3d9294684c739cc54de8dfa08ad22097ca8a1811 (diff) |
fixed a bug in xml parsing
Diffstat (limited to 'src/de/gultsch/chat/xml/XmlReader.java')
-rw-r--r-- | src/de/gultsch/chat/xml/XmlReader.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/de/gultsch/chat/xml/XmlReader.java b/src/de/gultsch/chat/xml/XmlReader.java index 8963f8d7..e9429665 100644 --- a/src/de/gultsch/chat/xml/XmlReader.java +++ b/src/de/gultsch/chat/xml/XmlReader.java @@ -86,8 +86,10 @@ public class XmlReader { } //Log.d(LOGTAG,"reading till the end of "+element.getName()); while(!nextTag.isEnd(element.getName())) { - Element child = this.readElement(nextTag); - element.addChild(child); + if (!nextTag.isNo()) { + Element child = this.readElement(nextTag); + element.addChild(child); + } nextTag = this.readTag(); } //Log.d(LOGTAG,"return with element"+element); |