code: public static void remove(Element elem, boolean recurse) {
  		elem.removeAttributeNS(URI, SRC_ATTR);
  		elem.removeAttributeNS(URI, LINE_ATTR);
  		elem.removeAttributeNS(URI, COL_ATTR);
  		if (recurse) {
  			NodeList children = elem.getChildNodes();
  			for (int i = 0; i < children.getLength(); i++) {
  				Node child = children.item(i);
  				if (child.getNodeType() == Node.ELEMENT_NODE) {
  					remove((Element) child, recurse);
  				}
  			}
  		}
  	}
docs: Remove the location attributes from a DOM element.
  
  @param elem
  the element to remove the location attributes from.
  @param recurse
  if <code>true</code>, also remove location attributes on
  descendant elements.