Lines Matching refs:parser

233      * @param parser XML dom node containing the description of the
240 public T inflate(XmlPullParser parser, P root) {
241 return inflate(parser, root, root != null);
262 XmlResourceParser parser = getContext().getResources().getXml(resource);
264 return inflate(parser, root, attachToRoot);
266 parser.close();
279 * @param parser XML dom node containing the description of the
291 public T inflate(XmlPullParser parser, P root,
294 final AttributeSet attrs = Xml.asAttributeSet(parser);
301 while ((type = parser.next()) != parser.START_TAG
302 && type != parser.END_DOCUMENT) {
306 if (type != parser.START_TAG) {
307 throw new InflateException(parser.getPositionDescription()
314 + parser.getName());
318 T xmlRoot = createItemFromTag(parser, parser.getName(),
327 rInflate(parser, result, attrs);
341 parser.getPositionDescription()
422 private final T createItemFromTag(XmlPullParser parser, String name, AttributeSet attrs) {
462 private void rInflate(XmlPullParser parser, T parent, final AttributeSet attrs)
464 final int depth = parser.getDepth();
467 while (((type = parser.next()) != parser.END_TAG ||
468 parser.getDepth() > depth) && type != parser.END_DOCUMENT) {
470 if (type != parser.START_TAG) {
474 if (onCreateCustomFromTag(parser, parent, attrs)) {
479 System.out.println("Now inflating tag: " + parser.getName());
481 String name = parser.getName();
483 T item = createItemFromTag(parser, name, attrs);
495 rInflate(parser, item, attrs);
505 * will be called. The parser will be pointing to the start of a tag, you
508 * @param parser XML dom node containing the description of the hierarchy.
514 protected boolean onCreateCustomFromTag(XmlPullParser parser, T parent,