Beispiel #1
0
 protected synchronized void parse(XmlPullParser parser) throws XmlParseException, IOException {
   try {
     parser.nextTag();
     parseElement(parser);
   } catch (XmlPullParserException e) {
     throw new XmlParseException(parser, e.getMessage(), e);
   }
 }
Beispiel #2
0
 protected void handleChildTag(XmlPullReader childTagReader)
     throws XmlPullParserException, IOException, XmlParseException {
   // When recursing, store state and reset the 0
   int tmpLastChildPullReaderIdx = lastChildPullReaderIdx;
   int tmpCount = count;
   this.lastChildPullReaderIdx = 0;
   this.count = 0;
   // Recurse child node
   childTagReader.parseElement(parser);
   // Restore state from before iteration
   this.lastChildPullReaderIdx = tmpLastChildPullReaderIdx;
   this.count = tmpCount;
 }