void (final XmlAttribute xmlAttribute, String expectedNs) { final String attrNs = xmlAttribute.getNamespace(); assertEquals(expectedNs, attrNs); final XmlTag parent = xmlAttribute.getParent(); assertEquals(parent.getAttribute(xmlAttribute.getLocalName(), attrNs), xmlAttribute); //final String parentNs = parent.getNamespace(); //if (!parentNs.equals(attrNs)) assertNull(parent.getAttribute(xmlAttribute.getLocalName(), parentNs)); assertEquals(parent.getAttributeValue(xmlAttribute.getLocalName(), attrNs), xmlAttribute.getValue()); //if (!parentNs.equals(attrNs)) assertNull(parent.getAttributeValue(xmlAttribute.getLocalName(), parentNs)); }