Searched defs:doc (Results 1 - 6 of 6) sorted by relevance

/libcore/support/src/test/java/tests/support/
H A DSupport_Xml.java41 public static String firstChildTextOf(Document doc) throws Exception { argument
42 NodeList children = doc.getFirstChild().getChildNodes();
47 public static Element firstElementOf(Document doc) throws Exception { argument
48 return (Element) doc.getFirstChild();
/libcore/dom/src/test/java/org/w3c/domts/
H A DXalanDOMTestDocumentBuilderFactory.java65 * @param doc DOM document, may not be null
67 public Object createXPathEvaluator(Document doc) { argument
72 return constructor.newInstance(new Object[] {doc});
76 return doc;
H A DDOMTestDocumentBuilderFactory.java68 * @param doc DOM document, may not be null
70 public Object createXPathEvaluator(Document doc) { argument
72 Method getFeatureMethod = doc.getClass().getMethod("getFeature",
75 return getFeatureMethod.invoke(doc, new Object[] {"XPath", null});
80 return doc;
H A DDOMTest.java202 Document doc = factory.load(resolveURI(docURI));
204 // if will be modified is false and doc is an EventTarget
207 * wBM: if (!willBeModified && doc instanceof EventTarget) {
208 * ((EventTarget) doc).addEventListener("DOMSubtreeModified", this,
211 return doc;
224 public Object createXPathEvaluator(Document doc) { argument
225 return factory.createXPathEvaluator(doc);
/libcore/ojluni/src/main/java/java/util/
H A DXMLUtils.java73 Document doc = null;
75 doc = getLoadingDoc(in);
79 Element propertiesElement = doc.getDocumentElement();
142 Document doc = db.newDocument();
144 doc.appendChild(doc.createElement("properties"));
148 doc.createElement("comment"));
149 comments.appendChild(doc.createTextNode(comment));
155 doc.createElement("entry"));
157 entry.appendChild(doc
163 emitDocument(Document doc, OutputStream os, String encoding) argument
[all...]
/libcore/ojluni/src/main/java/java/util/prefs/
H A DXmlSupport.java102 Document doc = createPrefsDoc("preferences");
103 Element preferences = doc.getDocumentElement() ;
106 preferences.appendChild(doc.createElement("root"));
118 e.appendChild(doc.createElement("map"));
119 e = (Element) e.appendChild(doc.createElement("node"));
122 putPreferencesInXml(e, doc, p, subTree);
124 writeDoc(doc, os);
139 private static void putPreferencesInXml(Element elt, Document doc, argument
157 Element map = (Element) elt.appendChild(doc.createElement("map"));
160 map.appendChild(doc
270 writeDoc(Document doc, OutputStream out) argument
[all...]

Completed in 426 milliseconds