public void store(Element root,String eNames,String eName,String oldName){
  if (Control.backwardCompatible) {
    Element values=new Element(oldName);
    for (    String name : getNames()) {
      values.addContent(name + "%%");
    }
    root.addContent(values);
  }
  Element names=new Element(eNames);
  for (  String name : getNames()) {
    Element e=new Element(eName);
    if (eName.equals(Xml.LENGTH)) {
      e.setAttribute(new Attribute(Xml.VALUE,name));
    }
 else {
      e.setAttribute(new Attribute(Xml.NAME,name));
    }
    names.addContent(e);
  }
  root.addContent(names);
}

public void store ( Element root , String eNames , String eName , String oldName ) { if ( Control . backwardCompatible ) { Element values = new Element ( oldName ) ; for ( String name : getNames ( ) ) { values . addContent ( name + "%%" ) ; } root . addContent ( values ) ; } Element names = new Element ( eNames ) ; for ( String name : getNames ( ) ) { Element e = new Element ( eName ) ; if ( eName . equals ( Xml . LENGTH ) ) { e . setAttribute ( new Attribute ( Xml . VALUE , name ) ) ; } else { e . setAttribute ( new Attribute ( Xml . NAME , name ) ) ; } names . addContent ( e ) ; } root . addContent ( names ) ; }
create an xml element to represent this entry . this member has to remain synchronized with the detailed dtd in operations - cars . dtd and operations - engines . dtd .
