public void removeHref ( String href ) { String encodedHref = encodeHref ( href ) ; Element child = getFirstChild ( root , "href" ) ; //$NON-NLS-1$ while ( child != null ) { if ( encodedHref . equals ( getFirstText ( child ) ) ) { root . removeChild ( child ) ; return ; } child = getNextSibling ( child , "href" ) ; //$NON-NLS-1$ } }
Remove the given href from the set of hrefs .