public void testXMLPrefixIsAlwaysBound() {
Element parent = new Element("Test");
Element child1 = new Element("child");
child1.addAttribute(new Attribute("xml:lang",
"http://www.w3.org/XML/1998/namespace", "en"));
parent.appendChild(child1);
Element child2 = new Element("child");
child2.appendChild("2");
child2.addAttribute(new Attribute("xml:lang",
"http://www.w3.org/XML/1998/namespace", "fr"));
parent.appendChild(child2);
Element child3 = new Element("child");
child3.appendChild("3");
parent.appendChild(child3);
Element child4 = new Element("child");
child4.appendChild("4");
child4.addAttribute(new Attribute("xml:lang",
"http://www.w3.org/XML/1998/namespace", "en-US"));
parent.appendChild(child4);
Nodes result = parent.query("child::*/@xml:lang");
assertEquals(3, result.size());