Best code examples for Android XmlPullParserException class (org.xmlpull.v1.XmlPullParserException)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android XmlPullParserException class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android XmlPullParserException examples from Open Source projects
This code example shows how to use the following methods:
49:	throw new XmlPullParserException("<" + tagName 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getDetail, getLineNumber
137:	if(ex.getDetail() instanceof IOException) { 
138:	throw (IOException)ex.getDetail(); 
-
140:	if(ex.getDetail() instanceof RuntimeException) { 
141:	throw (RuntimeException)ex.getDetail(); 
-
148:	locator.setLineNumber(ex.getLineNumber()); 
149:	locator.setColumnNumber(ex.getColumnNumber()); 
-
151:	SAXParseException newEx = new SAXParseException(ex.getMessage(), 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: attribute, endTag, startTag, text
208:	mSerializer.startTag("", tag); 
209:	mSerializer.attribute("", ATTRIBUTE_MESSAGE, safeMessage(error)); 
210:	mSerializer.attribute("", ATTRIBUTE_TYPE, error.getClass().getName()); 
-
213:	mSerializer.text(w.toString()); 
214:	mSerializer.endTag("", tag); 
-
223:	mSerializer.attribute("", ATTRIBUTE_TIME, String.format(Locale.ENGLISH, "%.3f", 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getText, next, nextToken, setInput
373:	parser.setInput(new StringReader("<foo><!----></foo>")); 
374:	assertEquals(XmlPullParser.START_TAG, parser.next()); 
375:	assertEquals(XmlPullParser.COMMENT, parser.nextToken()); 
376:	assertEquals("", parser.getText()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getName, getText, next, nextToken, setInput
484:	assertEquals(XmlPullParser.DOCDECL, parser.nextToken()); 
485:	assertEquals(" foo [<!ENTITY bb \"bar baz\">]", parser.getText()); 
486:	assertNull(parser.getName()); 
487:	assertEquals(XmlPullParser.START_TAG, parser.nextToken()); 
488:	assertEquals(XmlPullParser.TEXT, parser.next()); 
489:	assertEquals("abar bazc", parser.getText()); 
490:	assertEquals(XmlPullParser.END_TAG, parser.next()); 
491:	assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); 
-
534:	result.setInput(new StringReader(xml)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: endDocument, endTag, flush
155:	mTestSuiteSerializer.endTag(null, "testsuites"); 
156:	mTestSuiteSerializer.endDocument(); 
157:	mTestSuiteSerializer.flush(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: attribute, endTag, startTag
52:	serializer.startTag(NAMESPACE_GSYNC_URI, "feedurl"); 
53:	serializer.attribute(null /* ns */, "value", feedUrl.getFeed()); 
54:	serializer.attribute(null /* ns */, "service", feedUrl.getService()); 
55:	serializer.attribute(null /* ns */, "authtoken", feedUrl.getAuthToken()); 
56:	serializer.endTag(NAMESPACE_GSYNC_URI, "feedurl"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: flush, setFeature, setOutput
474:	xmlSerializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); 
475:	xmlSerializer.setOutput(writer); 
-
477:	xmlSerializer.flush(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage
81:	String message = e.getMessage(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getName, getText, next, nextToken, setInput
169:	assertEquals(XmlPullParser.DOCDECL, parser.nextToken()); 
170:	assertEquals(XmlPullParser.START_TAG, parser.nextToken()); 
171:	assertEquals("foo", parser.getName()); 
172:	assertEquals(XmlPullParser.TEXT, parser.nextToken()); 
173:	assertEquals("a", parser.getText()); 
174:	assertEquals(XmlPullParser.ENTITY_REF, parser.nextToken()); 
175:	assertEquals("bb", parser.getName()); 
176:	assertEquals("", parser.getText()); 
177:	assertEquals(XmlPullParser.START_TAG, parser.nextToken()); 
178:	assertEquals("bar", parser.getName()); 
179:	assertEquals(XmlPullParser.TEXT, parser.nextToken()); 
180:	assertEquals("baz", parser.getText()); 
181:	assertEquals(XmlPullParser.COMMENT, parser.nextToken()); 
182:	assertEquals("quux", parser.getText()); 
183:	assertEquals(XmlPullParser.END_TAG, parser.nextToken()); 
184:	assertEquals("bar", parser.getName()); 
185:	assertEquals(XmlPullParser.TEXT, parser.nextToken()); 
186:	assertEquals("c", parser.getText()); 
187:	assertEquals(XmlPullParser.END_TAG, parser.next()); 
188:	assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); 
-
534:	result.setInput(new StringReader(xml)); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: attribute
86:	out.attribute(null, "type", item.type); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttributeValue
99:	String extension = mXpp.getAttributeValue(null, ATTR_EXTENSION); 
100:	String mimetype = mXpp.getAttributeValue(null, ATTR_MIMETYPE); 
101:	String icon = mXpp.getAttributeValue(null, ATTR_ICON); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: attribute, endTag, startTag
66:	xml.startTag(null, XMLTAG_Label); 
67:	xml.attribute(null, XMLATTR_relId, String.valueOf(relId)); 
68:	xml.attribute(null, XMLATTR_judul, title); 
69:	if (backgroundColor != null) xml.attribute(null, XMLATTR_warnaLatar, backgroundColor); 
70:	xml.endTag(null, XMLTAG_Label); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: endTag, startTag
50:	serializer.startTag(null, "filter"); 
-
52:	serializer.endTag(null, "filter"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: endTag, startTag, text
217:	serializer.startTag(null /* ns */, "author"); 
218:	serializer.startTag(null /* ns */, "name"); 
219:	serializer.text(author); 
220:	serializer.endTag(null /* ns */, "name"); 
221:	serializer.startTag(null /* ns */, "email"); 
222:	serializer.text(email); 
223:	serializer.endTag(null /* ns */, "email"); 
224:	serializer.endTag(null /* ns */, "author"); 
Full Snippet Info
7
CodeRank
Related Android XmlPullParserException Questions & Answers:
See Code Examples for Android XmlPullParserException Methods: