public static String displayXML(String input){
  debug.message("In displayXML ");
  StringCharacterIterator iter=new StringCharacterIterator(input);
  StringBuffer buf=new StringBuffer();
  for (char c=iter.first(); c != CharacterIterator.DONE; c=iter.next()) {
    if (c == '>') {
      buf.append("&gt;");
    }
 else     if (c == '<') {
      buf.append("&lt;");
    }
 else     if (c == '\n') {
      buf.append("<BR>\n");
    }
 else {
      buf.append(c);
    }
  }
  return buf.toString();
}

public static String displayXML ( String input ) { debug . message ( "In displayXML " ) ; StringCharacterIterator iter = new StringCharacterIterator ( input ) ; StringBuffer buf = new StringBuffer ( ) ; for ( char c = iter . first ( ) ; c != CharacterIterator . DONE ; c = iter . next ( ) ) { if ( c == '>' ) { buf . append ( "&gt;" ) ; } else if ( c == '<' ) { buf . append ( "&lt;" ) ; } else if ( c == '\n' ) { buf . append ( "<BR>\n" ) ; } else { buf . append ( c ) ; } } return buf . toString ( ) ; }
displays an xml string . this is a utility function used to hack up an html display of an xml string .
