protected void addContentSpecToElement(XMLElementDecl elementDecl){
  if ((fDepth == 0 || (fDepth == 1 && elementDecl.type == XMLElementDecl.TYPE_MIXED)) && fNodeIndexStack != null) {
    if (elementDecl.type == XMLElementDecl.TYPE_MIXED) {
      int pcdata=addUniqueLeafNode(null);
      if (fNodeIndexStack[0] == -1) {
        fNodeIndexStack[0]=pcdata;
      }
 else {
        fNodeIndexStack[0]=addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_CHOICE,pcdata,fNodeIndexStack[0]);
      }
    }
    setContentSpecIndex(fCurrentElementIndex,fNodeIndexStack[fDepth]);
  }
}

protected void addContentSpecToElement ( XMLElementDecl elementDecl ) { if ( ( fDepth == 0 || ( fDepth == 1 && elementDecl . type == XMLElementDecl . TYPE_MIXED ) ) && fNodeIndexStack != null ) { if ( elementDecl . type == XMLElementDecl . TYPE_MIXED ) { int pcdata = addUniqueLeafNode ( null ) ; if ( fNodeIndexStack [ 0 ] == - 1 ) { fNodeIndexStack [ 0 ] = pcdata ; } else { fNodeIndexStack [ 0 ] = addContentSpecNode ( XMLContentSpec . CONTENTSPECNODE_CHOICE , pcdata , fNodeIndexStack [ 0 ] ) ; } } setContentSpecIndex ( fCurrentElementIndex , fNodeIndexStack [ fDepth ] ) ; } }
adds the content spec to the given element declaration .
