private List _asStructuredContentArray(List array){
  List children;
  if (array instanceof Vector) {
    children=new Vector();
  }
 else {
    children=new ArrayList();
  }
  for (Iterator elements=array.iterator(); elements.hasNext(); ) {
    children.add(new XMLContent((Element)elements.next()));
  }
  return children;
}

private List _asStructuredContentArray ( List array ) { List children ; if ( array instanceof Vector ) { children = new Vector ( ) ; } else { children = new ArrayList ( ) ; } for ( Iterator elements = array . iterator ( ) ; elements . hasNext ( ) ; ) { children . add ( new XMLContent ( ( Element ) elements . next ( ) ) ) ; } return children ; }
convert from an array of element objects to an array of structuredcontent objects .
