Java Code Examples for org.dom4j.Attribute.getName()

The following are Jave code examples for showing how to use getName() of the org.dom4j.Attribute class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: bdf2   File: AbstractConverter.java   View Source Code Vote up 5 votes
protected void buildCommonGraphCellElement(Element element,Element targetElement){
	for(Object obj:element.attributes()){
		Attribute attr=(Attribute)obj;
		String name=attr.getName();
		if(name.equals("name") || name.equals("g")){
			continue;
		}
		targetElement.addAttribute(attr.getName(),attr.getValue());
	}
}