1838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson/*
2838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson * Copyright (C) 2010 The Android Open Source Project
3838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson *
4838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson * Licensed under the Apache License, Version 2.0 (the "License");
5838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson * you may not use this file except in compliance with the License.
6838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson * You may obtain a copy of the License at
7838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson *
8838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson *      http://www.apache.org/licenses/LICENSE-2.0
9838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson *
10838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson * Unless required by applicable law or agreed to in writing, software
11838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson * distributed under the License is distributed on an "AS IS" BASIS,
12838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson * See the License for the specific language governing permissions and
14838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson * limitations under the License.
15838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson */
16838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson
17838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilsonpackage libcore.xml;
18838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson
19838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilsonimport org.kxml2.io.KXmlParser;
20838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilsonimport org.xmlpull.v1.XmlPullParser;
2176c85883787791ba605a51d7bea3cfc27b5c5d95Jesse Wilsonimport org.xmlpull.v1.XmlPullParserException;
22838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson
23838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilsonpublic class KxmlPullParserDtdTest extends PullParserDtdTest {
2476c85883787791ba605a51d7bea3cfc27b5c5d95Jesse Wilson    @Override XmlPullParser newPullParser() throws XmlPullParserException {
2576c85883787791ba605a51d7bea3cfc27b5c5d95Jesse Wilson        KXmlParser result = new KXmlParser();
2676c85883787791ba605a51d7bea3cfc27b5c5d95Jesse Wilson        result.setFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL, true);
2776c85883787791ba605a51d7bea3cfc27b5c5d95Jesse Wilson        return result;
28838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson    }
29838419e39510cb3bf04cf5bfef2929a7cf759e65Jesse Wilson}
30