public void encodeCell(mxICell cell,Node node,boolean includeChildren){
  node.appendChild(encode(cell));
  if (includeChildren) {
    int childCount=cell.getChildCount();
    for (int i=0; i < childCount; i++) {
      encodeCell(cell.getChildAt(i),node,includeChildren);
    }
  }
}

public void encodeCell ( mxICell cell , Node node , boolean includeChildren ) { node . appendChild ( encode ( cell ) ) ; if ( includeChildren ) { int childCount = cell . getChildCount ( ) ; for ( int i = 0 ; i < childCount ; i ++ ) { encodeCell ( cell . getChildAt ( i ) , node , includeChildren ) ; } } }
encoding of cell hierarchies is built - into the core , but is a higher - level function that needs to be explicitely used by the respective object encoders ( eg . mxmodelcodec , mxchildchangecodec and mxrootchangecodec ) . this implementation writes the given cell and its children as a ( flat ) sequence into the given node . the children are not encoded if the optional includechildren is false . the function is in charge of adding the result into the given node and has no return value .
