/dalvik/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
hasAttributeNS04.java | 34 * The "hasAttributeNS()" method for an Element should 37 * Retrieve the first "emp:address" element. 77 Element testNode; 81 testNode = (Element) elementList.item(0);
|
hasAttributeNS05.java | 34 * The "hasAttributeNS()" method for an Element should 35 * return true if the element has an attribute with the given local name 36 * and the namespace URI is specified on this element or has a default value. 37 * Retrieve the first "address" element and the "hasAttributeNS()" method 38 * should return true since the element has "domestic" as the local name 76 Element testNode; 80 testNode = (Element) elementList.item(0);
|
importNode05.java | 36 * The importedNode is of type Element. 38 * Retrieve element "emp:address" from staffNS.xml document. 40 * with importedNode being the element from above and deep is false. 41 * Method should return an element node whose name matches "emp:address" 73 Element element; local 84 element = (Element) addresses.item(0); 85 assertNotNull("empAddressNotNull", element); 86 aNode = doc.importNode(element, false) [all...] |
importNode06.java | 36 * The importedNode is of type Element. 38 * Retrieve element "emp:address" from staffNS.xml document. 40 * with importedNode being the element from above and deep is true. 41 * Method should return an element node whose name matches "emp:address" and 72 Element element; local 82 element = (Element) addresses.item(0); 83 assertNotNull("empAddressNotNull", element); 84 aNode = doc.importNode(element, true) [all...] |
localName01.java | 76 Element testAddr; 81 testAddr = (Element) elementList.item(0);
|
namednodemapgetnameditemns03.java | 36 * Create a new Element node and add 2 new attribute nodes having the same local name but different 73 Node element; local 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();
|
namednodemapgetnameditemns04.java | 36 * Retreive the second address element node having localName=adrress. 38 * and add it to this element. Using the getNamedItemNS retreive the newly created attribute 39 * node from a nodemap of attributes of the retreive element node. 75 Element element; local 83 element = (Element) elementList.item(1); 85 newAttribute = element.setAttributeNodeNS(newAttr1); 86 attributes = element.getAttributes();
|
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; local 82 element = (Element) elementList.item(1); 83 attributesMap1 = element.getAttributes(); 84 attributesMap2 = element.getAttributes(); 86 newAttribute = element.setAttributeNodeNS(newAttr1) [all...] |
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; local 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();
|
namednodemapremovenameditemns08.java | 76 Element element; local 81 element = (Element) elementList.item(1); 82 attributes = element.getAttributes(); 83 element.removeAttributeNS("http://www.nist.gov", "domestic");
|
namednodemapremovenameditemns09.java | 39 * Check the element object to ensure that the attribute node has been removed from it. 75 Element element; local 80 element = (Element) elementList.item(1); 81 attributes = element.getAttributes(); 83 newAttributes = element.getAttributes();
|
namednodemapsetnameditemns04.java | 38 * Retreieve the second element whose local name is address and its attribute into a named node map. 82 Element element; local 89 element = (Element) elementList.item(1); 90 attributes = element.getAttributes();
|
namednodemapsetnameditemns10.java | 79 Element element; local 88 element = (Element) elementList.item(0); 89 attributes = element.getAttributes();
|
namednodemapsetnameditemns11.java | 78 Element element; local 89 element = (Element) elementList.item(0); 90 attributes = element.getAttributes();
|
namespaceURI01.java | 77 Element testAddr; 82 testAddr = (Element) elementList.item(0);
|
namespaceURI02.java | 74 Element testAddr; 79 testAddr = (Element) elementList.item(0);
|
nodegetlocalname03.java | 36 * Ceate two new element nodes and atribute nodes, with and without namespace prefixes. 72 Element element; local 73 Element qelement; 81 element = doc.createElementNS("http://www.w3.org/DOM/Test/elem", "elem"); 85 localElemName = element.getLocalName();
|
nodegetnamespaceuri03.java | 38 * Ceate two new element nodes and atribute nodes, with and without namespace prefixes. 74 Element element; local 75 Element elementNS; 85 element = doc.createElementNS(nullNS, "elem"); 90 elemNSURINull = element.getNamespaceURI();
|
nodegetprefix03.java | 36 * Ceate two new element nodes and atribute nodes, with and without namespace prefixes. 72 Element element; local 73 Element qelement; 81 element = doc.createElementNS("http://www.w3.org/DOM/Test/elem", "elem"); 85 elemNoPrefix = element.getPrefix();
|
nodenormalize01.java | 74 Element documentElement; 75 Element element1; 76 Element element2; 77 Element element3; 78 Element element4; 79 Element element5; 80 Element element6; 81 Element element7;
|
nodesetprefix02.java | 36 * tagName and name attributes of the Element and Attr interfaces, when applicable. 37 * Create a new attribute node and add it to an element node with an existing attribute having 74 Element element; local 83 element = (Element) elementList.item(1); 85 setNode = element.setAttributeNodeNS(newAttribute); 87 attribute = element.getAttributeNodeNS("http://www.usa.com", "domestic");
|
nodesetprefix04.java | 72 Element element; local 79 element = (Element) elementList.item(0); 80 assertNotNull("empEmployeeNotNull", element); 81 attribute = element.getAttributeNodeNS(nullNS, "defaultAttr");
|
prefix09.java | 39 * element. 78 Element addrNode; 82 addrNode = (Element) elementList.item(3);
|
removeAttributeNS01.java | 38 * Obtain the children of the THIRD "gender" element. The elements 82 Element genElement; 95 genElement = (Element) gList.item(0);
|
setAttributeNS03.java | 38 * Obtain the children of the THIRD "gender" element. The elements 79 Element genElement; 93 genElement = (Element) gList.item(0);
|