@Deprecated
    public String toXml() {
        XmlStream xml = new XmlStream();
        xml.setIndent("  ");
        xml.beginTag("value");
        printXml(xml);
        xml.endTag();
        return xml.toString();
    }
Get XML representation of a single field and all its children, if any.

@return XML representation of field in a &lt;value&gt; element
document/src/main/java/com/yahoo/document/datatypes/FieldValue.java