Searched refs:document (Results 1 - 25 of 28) sorted by relevance

12

/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/
H A DDocumentFragmentImpl.java35 DocumentFragmentImpl(DocumentImpl document) { argument
36 super(document);
41 return "#document-fragment";
H A DCDATASectionImpl.java34 public CDATASectionImpl(DocumentImpl document, String data) { argument
35 super(document, data);
59 parent.insertBefore(new CDATASectionImpl(document, parts[0] + "]]"), this);
61 parent.insertBefore(new CDATASectionImpl(document, ">" + parts[p] + "]]"), this);
82 TextImpl replacement = new TextImpl(document, getData());
H A DCommentImpl.java34 CommentImpl(DocumentImpl document, String data) { argument
35 super(document, data);
H A DEntityReferenceImpl.java36 EntityReferenceImpl(DocumentImpl document, String name) { argument
37 super(document);
H A DLeafNodeImpl.java41 LeafNodeImpl(DocumentImpl document) { argument
42 super(document);
H A DNotationImpl.java40 NotationImpl(DocumentImpl document, String notationName, String publicID, argument
42 super(document);
H A DInnerNodeImpl.java46 protected InnerNodeImpl(DocumentImpl document) { argument
47 super(document);
87 if (refChildImpl.document != document) {
115 if (document != null && newChildImpl.document != null && newChildImpl.document != document) {
176 if (oldChildImpl.document != document) {
[all...]
H A DEntityImpl.java40 EntityImpl(DocumentImpl document, String notationName, String publicID, argument
42 super(document);
H A DNamedNodeMapImpl.java122 // All nodes in the map must belong to the same document.
124 Document document = list.get(0).document;
126 if (document != null && arg.getOwnerDocument() != document) {
152 // All nodes in the map must belong to the same document.
154 Document document = list.get(0).document;
156 if (document != null && arg.getOwnerDocument() != document) {
[all...]
H A DProcessingInstructionImpl.java40 ProcessingInstructionImpl(DocumentImpl document, String target, String data) { argument
41 super(document);
H A DAttrImpl.java48 AttrImpl(DocumentImpl document, String namespaceURI, String qualifiedName) { argument
49 super(document);
55 AttrImpl(DocumentImpl document, String name) { argument
56 super(document);
H A DCharacterDataImpl.java37 CharacterDataImpl(DocumentImpl document, String data) { argument
38 super(document);
H A DDocumentTypeImpl.java42 public DocumentTypeImpl(DocumentImpl document, String qualifiedName, argument
44 super(document);
H A DTextImpl.java35 public TextImpl(DocumentImpl document, String data) { argument
36 super(document, data);
50 Text newText = document.createTextNode(
68 // TODO: wire this up when we support document validation
151 * not alter the document's semantics.
H A DElementImpl.java49 ElementImpl(DocumentImpl document, String namespaceURI, String qualifiedName) { argument
50 super(document);
54 ElementImpl(DocumentImpl document, String name) { argument
55 super(document);
144 * This implementation walks the entire document looking for an element
292 attr = document.createAttribute(name);
304 attr = document.createAttributeNS(namespaceURI, qualifiedName);
314 if (newAttrImpl.document != this.document) {
339 if (newAttrImpl.document !
[all...]
H A DNodeImpl.java66 DocumentImpl document; field in class:NodeImpl
68 NodeImpl(DocumentImpl document) { argument
69 this.document = document;
77 return document.cloneOrImportNode(UserDataHandler.NODE_CLONED, this, deep);
119 return document == this ? null : document;
428 appendChild(document.createTextNode(textContent));
709 Map<String, UserData> map = document.getUserDataMap(this);
720 Map<String, UserData> map = document
[all...]
H A DDocumentImpl.java67 * A lazily initialized map of user data values for this document's own
68 * nodes. The map is weak because the document may live longer than its
73 * attach user data to the document to save those fields. Xerces also takes
84 this.document = this;
125 * @param node a node belonging to any document or DOM implementation.
129 * @return a new node whose document is this document and whose DOM
179 * original document. Imports copy entities by reference,
181 * document.
199 * Returns a copy of the given node or subtree with this document a
[all...]
/dalvik/libcore/xml/src/test/java/tests/xml/
H A DNormalizeTest.java57 private Document document; field in class:NormalizeTest
66 document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
67 domConfiguration = document.getDomConfig();
345 document.getDocumentElement().normalize();
346 assertEquals(xml, domToString(document));
350 document.getDocumentElement().normalize();
351 assertEquals(xml, domToString(document));
358 document.normalizeDocument();
359 assertEquals(xml, domToString(document));
363 document
593 domToString(Document document) argument
[all...]
H A DNodeTest.java44 Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(bis);
45 Node root = document.getDocumentElement();
52 Document document = builder.parse(file);
54 assertFileUriEquals(file, document.getBaseURI());
56 Element documentElement = document.getDocumentElement();
H A DDomTest.java99 private Document document; field in class:DomTest
134 document = builder.parse(new InputSource(new StringReader(xml)));
137 doctype = document.getDoctype();
145 // document nodes
146 menu = document.getDocumentElement();
178 allNodes.addAll(Arrays.asList(document, doctype, menu, item, itemXmlns,
211 assertEquals(null, document.lookupNamespaceURI("a"));
236 assertEquals(null, document.lookupNamespaceURI(null));
274 assertEquals(null, document.lookupPrefix("http://addons"));
318 assertEquals(null, document
1355 domToString(Document document) argument
1379 domToStringStripElementWhitespace(Document document) argument
[all...]
H A DSimpleBuilderTest.java74 Document document = builder.parse(getClass().getResourceAsStream(
77 Element root = document.getDocumentElement();
106 list = document.getChildNodes();
132 Document document = builder.parse(getClass().getResourceAsStream(
135 Element root = document.getDocumentElement();
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/parsers/
H A DDocumentBuilderImpl.java106 DocumentImpl document = new DocumentImpl(
108 document.setDocumentURI(systemId);
132 "Unexpected end of document", null);
135 parse(parser, document, document, XmlPullParser.END_DOCUMENT);
163 return document;
167 * Implements the whole parsing of the XML document. The XML pull parser is
175 * @param document The document we're building.
176 * @param node The node we're currently on (initially the document itsel
183 parse(XmlPullParser parser, DocumentImpl document, Node node, int endToken) argument
377 appendText(DocumentImpl document, Node parent, int token, String text) argument
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/
H A DExpatPullParser.java51 private Document document; field in class:ExpatPullParser
126 this.document = new CharDocument(in, processNamespaces);
131 this.document = new ByteDocument(in, encodingName, processNamespaces);
135 return this.document.getEncoding();
149 return document.currentEvent.namespaceStack.countAt(depth);
153 String prefix = document.currentEvent.namespaceStack.prefixAt(pos);
160 return document.currentEvent.namespaceStack.uriAt(pos);
170 return document.currentEvent.namespaceStack.uriFor(prefix);
174 return this.document.getDepth();
223 final StringBuilder builder = this.document
[all...]
/dalvik/libcore/xml/src/test/java/tests/api/javax/xml/parsers/
H A DDocumentBuilderFactoryTest.java479 Document document = parser.parse(getClass().getResourceAsStream(
484 goThroughDocument((Node) document, "");
507 Document document = parser.parse(getClass().getResourceAsStream(
512 goThroughDocument((Node) document, "");
548 Document document = parser.parse(getClass().getResourceAsStream(
553 assertNotNull(document);
571 Document document = parser.parse(getClass().getResourceAsStream(
576 assertNotNull(document);
666 Document document = parser.parse(getClass().getResourceAsStream(
669 goThroughDocument((Node) document, "");
[all...]
/dalvik/libcore/xml/src/test/java/org/apache/harmony/xml/
H A DJaxenXPathTestSuite.java81 * The tests.xml document has this structure:
84 * <document url="...">
88 * </document>
89 * <document url="...">
91 * </document>
100 for (Element document : elementsOf(tests.getElementsByTagName("document"))) {
101 String url = document.getAttribute("url");
103 for (final Element context : elementsOf(document.getElementsByTagName("context"))) {

Completed in 148 milliseconds

12