public final String toXML(){
  StringBuffer str=new StringBuffer();
  str.append('<');
  str.append(XML_ROOT_ELEMENT);
  str.append(' ');
  str.append(XML_ATTRIBUTE_PROCESS_ID);
  str.append("=\"");
  str.append(processId);
  str.append("\">\n");
  if (values != null) {
    for (    FilteredDataTagValue value : values) {
      str.append(value.toXML());
    }
  }
  str.append("</");
  str.append(XML_ROOT_ELEMENT);
  str.append('>');
  return str.toString();
}

public final String toXML ( ) { StringBuffer str = new StringBuffer ( ) ; str . append ( '<' ) ; str . append ( XML_ROOT_ELEMENT ) ; str . append ( ' ' ) ; str . append ( XML_ATTRIBUTE_PROCESS_ID ) ; str . append ( "=\"" ) ; str . append ( processId ) ; str . append ( "\">\n" ) ; if ( values != null ) { for ( FilteredDataTagValue value : values ) { str . append ( value . toXML ( ) ) ; } } str . append ( "</" ) ; str . append ( XML_ROOT_ELEMENT ) ; str . append ( '>' ) ; return str . toString ( ) ; }
encodes the object as an xml document .
