Code example for Attr

Methods: getNamegetOwnerElementgetValue

0
		return parentNode;
	} 
 
	private void computeBasicXPath(Attr attr, StringBuilder xpath,
			NamespaceInfos namespaceInfos) {
		computeBasicXPath(attr.getOwnerElement(), xpath, namespaceInfos);
		xpath.append("[@");
		xpath.append(attr.getName());
		xpath.append("=");
		addXPathConditionValue(attr.getValue(), xpath);
		xpath.append("]");
		xpath.append("/@");
		xpath.append(attr.getName());
	} 
 
	private void computeBasicXPath(Text text, StringBuilder xpath,
			NamespaceInfos namespaceInfos) {
		computeBasicXPath(text.getParentNode(), xpath, namespaceInfos);
		xpath.append("[text()=");
		addXPathConditionValue(text.getData(), xpath);
Stop searching for code, let great code find you!  Add Codota to your java IDE