private void markDeleted(){
  ArrayList childElements=getChildElements();
  if (childElements != null && childElements.size() > 0) {
    for (int i=0; i < childElements.size(); i++) {
      XMLElement nextChild=(XMLElement)childElements.get(i);
      nextChild.markDeleted();
    }
  }
  isDeleted=true;
}

private void markDeleted ( ) { ArrayList childElements = getChildElements ( ) ; if ( childElements != null && childElements . size ( ) > 0 ) { for ( int i = 0 ; i < childElements . size ( ) ; i ++ ) { XMLElement nextChild = ( XMLElement ) childElements . get ( i ) ; nextChild . markDeleted ( ) ; } } isDeleted = true ; }
marks the given element deleted .
