@Override protected void cloneContent(NamedNodeMapImpl srcmap){
  List srcnodes=srcmap.nodes;
  if (srcnodes != null) {
    int size=srcnodes.size();
    if (size != 0) {
      if (nodes == null) {
        nodes=new ArrayList(size);
      }
 else {
        nodes.clear();
      }
      for (int i=0; i < size; ++i) {
        NodeImpl n=(NodeImpl)srcnodes.get(i);
        NodeImpl clone=(NodeImpl)n.cloneNode(true);
        clone.isSpecified(n.isSpecified());
        nodes.add(clone);
        clone.ownerNode=ownerNode;
        clone.isOwned(true);
      }
    }
  }
}

@ Override protected void cloneContent ( NamedNodeMapImpl srcmap ) { List srcnodes = srcmap . nodes ; if ( srcnodes != null ) { int size = srcnodes . size ( ) ; if ( size != 0 ) { if ( nodes == null ) { nodes = new ArrayList ( size ) ; } else { nodes . clear ( ) ; } for ( int i = 0 ; i < size ; ++ i ) { NodeImpl n = ( NodeImpl ) srcnodes . get ( i ) ; NodeImpl clone = ( NodeImpl ) n . cloneNode ( true ) ; clone . isSpecified ( n . isSpecified ( ) ) ; nodes . add ( clone ) ; clone . ownerNode = ownerNode ; clone . isOwned ( true ) ; } } } }
override parent ' s method to set the ownernode correctly
