public String toStringOf(String elementName,Object element){
  try {
    StringWriter writer=new StringWriter();
    XmlSerializer serializer=Xml.createSerializer();
    serializer.setOutput(writer);
    serialize(serializer,elementName,element,false);
    return writer.toString();
  }
 catch (  IOException e) {
    throw new IllegalArgumentException(e);
  }
}

public String toStringOf ( String elementName , Object element ) { try { StringWriter writer = new StringWriter ( ) ; XmlSerializer serializer = Xml . createSerializer ( ) ; serializer . setOutput ( writer ) ; serialize ( serializer , elementName , element , false ) ; return writer . toString ( ) ; } catch ( IOException e ) { throw new IllegalArgumentException ( e ) ; } }
shows a debug string representation of an element data object of key / value pairs .
