protected void stripIgnorableText(){
  if (rootElement.getFirstChild() == null) {
    return;
  }
  Node firstChild=rootElement.getFirstChild();
  if (isIgnorableTextNode(firstChild)) {
    rootElement.removeChild(firstChild);
    if (rootElement.getFirstChild() == null) {
      return;
    }
  }
  Node lastChild=rootElement.getLastChild();
  if (isIgnorableTextNode(lastChild)) {
    rootElement.removeChild(lastChild);
  }
}

protected void stripIgnorableText ( ) { if ( rootElement . getFirstChild ( ) == null ) { return ; } Node firstChild = rootElement . getFirstChild ( ) ; if ( isIgnorableTextNode ( firstChild ) ) { rootElement . removeChild ( firstChild ) ; if ( rootElement . getFirstChild ( ) == null ) { return ; } } Node lastChild = rootElement . getLastChild ( ) ; if ( isIgnorableTextNode ( lastChild ) ) { rootElement . removeChild ( lastChild ) ; } }
strip ignorable whitespace nodes from the root .
