/libcore/luni/src/test/java/tests/org/w3c/dom/ |
H A D | ElementSetAttributeNS.java | 16 * The method setAttributeNS adds a new attribute. Create a new element and add 57 Element element; 62 element = doc.createElementNS("http://www.w3.org/DOM", "dom:elem"); 63 element.setAttributeNS("http://www.w3.org/DOM/Test/setAttributeNS", 65 attribute = element.getAttributeNodeNS( 74 Element element; 81 element = (Element) elementList.item(0); 82 element.setAttributeNS("http://www.w3.org/DOM/Test/setAttributeNS", 84 attribute = element.getAttributeNodeNS( 95 Element element; [all...] |
H A D | DocumentGeteEementById.java | 9 * The method getElementById returns the element whose ID is given by elementId. 10 * If not such element exists, returns null. 13 * elementId. This should return a null element. 53 Element element; 56 element = doc.getElementById(elementId); 57 assertNull("documentgetelementbyid01", element);
|
H A D | GetElementById.java | 31 * element whose ID matches elementId. 34 * equals "CANADA". Method should return an element whose tag name is 76 // Element element; 79 // element = doc.getElementById("CANADA"); 80 // tagname = element.getTagName(); 85 Element element; 87 element = doc.getElementById("Cancun"); 88 assertNull("throw_Null", element);
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
H A D | nodeissupported01.java | 37 * Call the isSupported method on the document element node with a combination of features 68 Element element; 84 element = doc.getDocumentElement(); 87 success = element.isSupported(featureXML, version); 89 success = element.isSupported(featureXML, version1); 94 success = element.isSupported(featureCore, version); 96 success = element.isSupported(featureCore, version1); 97 success = element.isSupported(featureCore, version2);
|
H A D | attrgetownerelement05.java | 37 * Retreive an element and its attributes. Then remove the element and check the name of 73 Node element; 85 element = elementList.item(1); 86 parentElement = (Element) element.getParentNode(); 87 nodeMap = element.getAttributes(); 88 removedChild = parentElement.removeChild(element);
|
H A D | elementhasattributens03.java | 35 * and namespace URI is specified on this element or has a default value, 38 * Create a new element and an attribute node that has an empty namespace. 39 * Add the attribute node to the element node. Check if the newly created element 77 Element element; 84 element = doc.createElementNS("http://www.w3.org/DOM", "address"); 85 assertNotNull("createElementNotNull", element); 87 newAttribute = element.setAttributeNode(attribute); 88 state = element.hasAttributeNS(nullNS, "domestic");
|
H A D | elementremoveattributens01.java | 35 * Create a new element and add a new attribute node to it. 38 * method on the element and check if it returns false. 73 Element element; 78 element = doc.createElementNS("http://www.w3.org/DOM", "elem"); 80 newAttribute = element.setAttributeNodeNS(attribute); 81 element.removeAttributeNS("http://www.w3.org/DOM/Test/createAttributeNS", "attr"); 82 state = element.hasAttributeNS("http://www.w3.org/DOM/Test/createAttributeNS", "attr");
|
H A D | elementsetattributenodens06.java | 36 * Attempt to add an attribute node to an element node which is part of the replacement text of 72 Element element; 80 element = doc.createElementNS("http://www.w3.org/DOM/Test", "elem1"); 84 newAttribute = element.setAttributeNodeNS(attribute); 86 element = (Element) elementList.item(0); 92 newAttribute = element.setAttributeNodeNS(attribute2);
|
H A D | namednodemapgetnameditemns03.java | 73 Node element; 80 element = doc.createElementNS("http://www.w3.org/DOM/Test", "root"); 82 newAttribute = ((Element) /*Node */element).setAttributeNodeNS(newAttr1); 84 newAttribute = ((Element) /*Node */element).setAttributeNodeNS(newAttr2); 85 attributes = element.getAttributes();
|
H A D | namednodemapgetnameditemns06.java | 34 * Retreive the second address element node having localName=adrress. Retreive the attributes 35 * of this element into 2 nodemaps. Create a new attribute node and add it to this element. 74 Element element; 82 element = (Element) elementList.item(1); 83 attributesMap1 = element.getAttributes(); 84 attributesMap2 = element.getAttributes(); 86 newAttribute = element.setAttributeNodeNS(newAttr1);
|
H A D | namednodemapremovenameditemns03.java | 36 * Create a new element node and add 2 new attribute nodes to it that have the same localName 38 * new element node and check to see that the second attribute still exists. 73 Node element; 80 element = doc.createElementNS("http://www.w3.org/DOM/Test", "root"); 82 newAttribute = ((Element) /*Node */element).setAttributeNodeNS(attribute1); 84 newAttribute = ((Element) /*Node */element).setAttributeNodeNS(attribute2); 85 attributes = element.getAttributes();
|
H A D | namednodemapsetnameditemns06.java | 34 * Retreieve the first element whose localName is address and its attributes into a named node map. 36 * Retreieve the second element whose localName is address and its attributes into a named node map. 74 Element element; 79 element = (Element) elementList.item(0); 80 attributes = element.getAttributes(); 82 element = (Element) elementList.item(1); 83 attributes = element.getAttributes();
|
H A D | namednodemapsetnameditemns07.java | 38 * Retreieve the attributes of first element whose localName is address into a named node map. 40 * from the NamedNodeMap. Retreieve the attributes of second element whose localName is address 80 Element element; 85 element = (Element) elementList.item(0); 86 attributes = element.getAttributes(); 88 element = (Element) elementList.item(1); 89 attributes = element.getAttributes();
|
H A D | namednodemapsetnameditemns08.java | 36 * Retreieve the first element whose localName is address and its attributes into a named node map. 37 * Retreiving the domestic attribute from the namednodemap. Retreieve the second element whose 76 Element element; 81 element = (Element) elementList.item(0); 82 attributes = element.getAttributes(); 84 element = (Element) elementList.item(1); 85 attributes = element.getAttributes();
|
H A D | documentgetelementbyid01.java | 47 * The method getElementById returns the element whose ID is given by elementId. 48 * If not such element exists, returns null. 51 * This should return a null element. 80 Element element; 83 element = doc.getElementById(elementId); 84 assertNull("documentgetelementbyid01", element);
|
H A D | elementgetelementsbytagnamens02.java | 86 Element element; 89 element = doc.getDocumentElement(); 90 elementList = element.getElementsByTagNameNS("**", "*");
|
H A D | elementgetelementsbytagnamens05.java | 87 Element element; 90 element = doc.getDocumentElement(); 91 elementList = element.getElementsByTagNameNS("http://www.altavista.com", "*");
|
H A D | elementhasattribute01.java | 48 * on this element or has a default value, false otherwise 84 Element element; 87 element = doc.getDocumentElement(); 88 state = element.hasAttribute("");
|
H A D | elementsetattributens05.java | 67 Element element; 71 element = doc.createElementNS("http://www.w3.org/DOM/Test/L2", "dom:elem"); 76 element.setAttributeNS(nullNS, "dom:root", "test");
|
H A D | getElementById01.java | 35 * Document should return an element whose ID matches elementId. 38 * with elementId equals "CANADA". Method should return an element 74 Element element; 77 element = doc.getElementById("CANADA"); 78 tagname = element.getTagName();
|
H A D | nodesetprefix06.java | 66 Element element; 68 element = doc.createElementNS("http://www.w3.org/DOM/Test/L2", "dom:elem"); 73 element.setPrefix("xml");
|
H A D | nodesetprefix08.java | 65 Element element; 70 element = (Element) elementList.item(0); 71 attribute = element.getAttributeNode("xmlns");
|
H A D | nodesetprefix09.java | 35 * Create a new namespace aware element node and call the setPrefix method on it with a prefix having 65 Element element; 67 element = doc.createElementNS("http://www.w3.org/DOM/Test/L2", "dom:elem"); 72 element.setPrefix(value);
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
H A D | hc_elementnormalize2.java | 31 * Add an empty text node to an existing attribute node, normalize the containing element 62 Element element; 73 element = (Element) elementList.item(0); 74 attrNode = element.getAttributeNode("title"); 76 element.normalize(); 77 attrNode = element.getAttributeNode("title");
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | JaxenXPathTestSuite.java | 101 * Populates the test suite with tests from the given XML context element. 104 InputSource inputSource, Element element) { 107 * Each context element has this structure: 119 String select = element.getAttribute("select"); 123 xpath.setXPathVariableResolver(new ElementVariableResolver(element)); 125 for (Element test : elementsOf(element.getChildNodes())) { 139 * Returns the test described by the given {@code <test>} element. Such 144 * <li>String matches. These tests have a nested {@code <valueOf>} element 151 final XPath xpath, final Context context, final Element element) { 152 final String select = element 103 contextToTestSuite(TestSuite suite, String url, InputSource inputSource, Element element) argument 150 createFromTest( final XPath xpath, final Context context, final Element element) argument 202 createFromValueOf( final XPath xpath, final Context context, final Element element) argument 287 private final Element element; field in class:JaxenXPathTestSuite.ElementVariableResolver 288 ElementVariableResolver(Element element) argument [all...] |