protected void dataToXML(){
  Element root;
  Element node;
  Element child;
  int i;
  root=m_Document.getDocumentElement();
  node=m_Document.createElement(TAG_BODY);
  root.appendChild(node);
  child=m_Document.createElement(TAG_INSTANCES);
  node.appendChild(child);
  for (i=0; i < m_Instances.numInstances(); i++) {
    addInstance(child,m_Instances.instance(i));
  }
}

protected void dataToXML ( ) { Element root ; Element node ; Element child ; int i ; root = m_Document . getDocumentElement ( ) ; node = m_Document . createElement ( TAG_BODY ) ; root . appendChild ( node ) ; child = m_Document . createElement ( TAG_INSTANCES ) ; node . appendChild ( child ) ; for ( i = 0 ; i < m_Instances . numInstances ( ) ; i ++ ) { addInstance ( child , m_Instances . instance ( i ) ) ; } }
generates the xml structure from the rows
