Home | History | Annotate | Download | only in dom

Lines Matching refs:Element

24 import org.w3c.dom.Element;
35 * Testing Element.setAttributeNodeNS: If an attribute with that local name and
36 * that namespace URI is already present in the element, it is replaced by the
37 * new one. Create a new element and two new attribute nodes (in the same
39 * element node using the setAttributeNodeNS method. Check that only one
78 Element element;
89 element = doc.createElementNS("http://www.w3.org/DOM/Test/Level2",
90 "new:element");
96 element.setAttributeNodeNS(attribute1);
97 element.setAttributeNodeNS(attribute2);
98 attrNode = element.getAttributeNodeNS(
105 attributes = element.getAttributes();
111 Element element;
112 Element element2;
124 element = (Element) elementList.item(1);
125 attribute = element.getAttributeNodeNS(nullNS, "street");
127 element2 = (Element) elementList.item(2);
136 Element element1;
137 Element element2;
146 element1 = (Element) elementList.item(1);
148 element2 = (Element) elementList.item(2);
162 Element element1;
163 Element element2;
185 Element element;
190 element = doc.createElementNS("http://www.w3.org/DOM/Test", "elem1");
197 element.setAttributeNodeNS(attribute);
206 Element element;
213 element = doc.createElementNS("http://www.w3.org/DOM/Test", "elem1");
217 element.setAttributeNodeNS(attribute);
219 element = (Element) elementList.item(0);
226 element.setAttributeNodeNS(attribute2);