textbender.g.xml.dom
Class ElementX

java.lang.Object
  extended by ElementX

public final class ElementX
extends Object

Element utilities.


Method Summary
static String duplicateAttributeNS(Element fromElement, String namespaceURI, String localName, Element toElement, StringBuilder b)
          Duplicates the named attribute, copying it from 'fromElement' to 'toElement'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

duplicateAttributeNS

public static String duplicateAttributeNS(Element fromElement,
                                          String namespaceURI,
                                          String localName,
                                          Element toElement,
                                          StringBuilder b)
Duplicates the named attribute, copying it from 'fromElement' to 'toElement'. If it is not present in fromElement, ensures it is removed from toElement as well.

Parameters:
b - string builder to use, overwriting its existing content
Returns:
value of attribute, per fromElement.getAttributeNS()