Home
last modified time | relevance | path

Searched refs:XmlPullParser (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/xml/
DPullParserDtdTest.java22 import org.xmlpull.v1.XmlPullParser;
40 XmlPullParser parser = newPullParser(xml); in testDeclaringParameterEntities()
41 while (parser.next() != XmlPullParser.END_DOCUMENT) { in testDeclaringParameterEntities()
63 XmlPullParser parser = newPullParser(xml); in testGeneralAndParameterEntityWithTheSameName()
64 assertEquals(XmlPullParser.START_TAG, parser.next()); in testGeneralAndParameterEntityWithTheSameName()
65 assertEquals(XmlPullParser.TEXT, parser.next()); in testGeneralAndParameterEntityWithTheSameName()
67 assertEquals(XmlPullParser.END_TAG, parser.next()); in testGeneralAndParameterEntityWithTheSameName()
68 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); in testGeneralAndParameterEntityWithTheSameName()
75 XmlPullParser parser = newPullParser(xml); in testInternalEntities()
76 assertEquals(XmlPullParser.START_TAG, parser.next()); in testInternalEntities()
[all …]
DPullParserTest.java22 import org.xmlpull.v1.XmlPullParser;
28 XmlPullParser parser = newPullParser(); in testAttributeNoValueWithRelaxed()
31 assertEquals(XmlPullParser.START_TAG, parser.next()); in testAttributeNoValueWithRelaxed()
38 XmlPullParser parser = newPullParser(); in testAttributeUnquotedValueWithRelaxed()
41 assertEquals(XmlPullParser.START_TAG, parser.next()); in testAttributeUnquotedValueWithRelaxed()
48 XmlPullParser parser = newPullParser(); in testUnterminatedEntityWithRelaxed()
51 assertEquals(XmlPullParser.START_TAG, parser.next()); in testUnterminatedEntityWithRelaxed()
55 assertEquals(XmlPullParser.TEXT, parser.next()); in testUnterminatedEntityWithRelaxed()
60 XmlPullParser parser = newPullParser(); in testEntitiesAndNamespaces()
68 XmlPullParser parser = newPullParser(); in testEntitiesAndNamespacesWithRelaxed()
[all …]
DKxmlPullParserDtdTest.java20 import org.xmlpull.v1.XmlPullParser;
24 @Override XmlPullParser newPullParser() throws XmlPullParserException { in newPullParser()
26 result.setFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL, true); in newPullParser()
DKxmlPullParserTest.java20 import org.xmlpull.v1.XmlPullParser;
24 @Override XmlPullParser newPullParser() { in newPullParser()
DXmlPullParserFactoryTest.java27 import org.xmlpull.v1.XmlPullParser;
36 XmlPullParser parser = factory.newPullParser(); in testDefaultNewInstance()
228 public static class XmlPullParserStub implements XmlPullParser {
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DDocumentBuilderImpl.java43 import org.xmlpull.v1.XmlPullParser;
108 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, namespaceAware); in parse()
124 if (parser.nextToken() == XmlPullParser.END_DOCUMENT) { in parse()
128 parse(parser, document, document, XmlPullParser.END_DOCUMENT); in parse()
130 parser.require(XmlPullParser.END_DOCUMENT, null, null); in parse()
188 while (token != endToken && token != XmlPullParser.END_DOCUMENT) { in parse()
189 if (token == XmlPullParser.PROCESSING_INSTRUCTION) { in parse()
203 } else if (token == XmlPullParser.DOCDECL) { in parse()
209 } else if (token == XmlPullParser.COMMENT) { in parse()
217 } else if (token == XmlPullParser.IGNORABLE_WHITESPACE) { in parse()
[all …]
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java84 features.put (XmlPullParser.FEATURE_PROCESS_NAMESPACES, awareness); in setNamespaceAware()
96 return getFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES); in isNamespaceAware()
108 features.put(XmlPullParser.FEATURE_VALIDATION, validating); in setValidating()
120 return getFeature(XmlPullParser.FEATURE_VALIDATION); in isValidating()
129 public XmlPullParser newPullParser() throws XmlPullParserException { in newPullParser()
130 final XmlPullParser pp = getParserInstance(); in newPullParser()
142 private XmlPullParser getParserInstance() throws XmlPullParserException { in getParserInstance()
151 return (XmlPullParser) parserClass.newInstance(); in getParserInstance()
DXmlPullParserException.java36 public XmlPullParserException(String msg, XmlPullParser parser, Throwable chain) { in XmlPullParserException()
DXmlPullParser.java141 public interface XmlPullParser { interface
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
DDriver.java33 import org.xmlpull.v1.XmlPullParser;
73 protected XmlPullParser pp;
85 public Driver(XmlPullParser pp) throws XmlPullParserException { in Driver()
173 return pp.getFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES); in getFeature()
175 return pp.getFeature(XmlPullParser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES); in getFeature()
177 return pp.getFeature(XmlPullParser.FEATURE_VALIDATION); in getFeature()
193 pp.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, value); in setFeature()
195 if(pp.getFeature(XmlPullParser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES) != value) { in setFeature()
196 pp.setFeature(XmlPullParser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES, value); in setFeature()
199 pp.setFeature(XmlPullParser.FEATURE_VALIDATION, value); in setFeature()
[all …]
/libcore/benchmarks/src/benchmarks/
DXmlParseBenchmark.java38 import org.xmlpull.v1.XmlPullParser;
53 private Constructor<? extends XmlPullParser> kxmlConstructor;
54 private Constructor<? extends XmlPullParser> expatConstructor;
133 private int testXmlPull(Constructor<? extends XmlPullParser> constructor, int reps) in testXmlPull()
138 XmlPullParser xmlPullParser = constructor.newInstance(); in testXmlPull()
141 while ((type = xmlPullParser.next()) != XmlPullParser.END_DOCUMENT) { in testXmlPull()
142 if (type == XmlPullParser.START_TAG) { in testXmlPull()
/libcore/benchmarks/src/benchmarks/regression/
DXmlEntitiesBenchmark.java25 import org.xmlpull.v1.XmlPullParser;
58 XmlPullParser parser = xmlPullParserFactory.newPullParser(); in timeXmlParser()
60 while (parser.next() != XmlPullParser.END_DOCUMENT) { in timeXmlParser()
DParseBenchmark.java34 import org.xmlpull.v1.XmlPullParser;
194 XmlPullParser xmlParser = android.util.Xml.newPullParser(); in parse()
197 while (xmlParser.next() != XmlPullParser.END_DOCUMENT) { in parse()
/libcore/xml/src/main/java/org/kxml2/io/
DKXmlParser.java33 import org.xmlpull.v1.XmlPullParser;
39 public class KXmlParser implements XmlPullParser, Closeable {
1760 if (XmlPullParser.FEATURE_PROCESS_NAMESPACES.equals(feature)) { in getFeature()
2093 if (XmlPullParser.FEATURE_PROCESS_NAMESPACES.equals(feature)) { in setFeature()
2095 } else if (XmlPullParser.FEATURE_PROCESS_DOCDECL.equals(feature)) { in setFeature()