class XAnnotatedContent extends XAnnotatedMember {

    private static final OutputFormat DEFAULT_FORMAT = new OutputFormat();

    static {
        DEFAULT_FORMAT.setOmitXMLDeclaration(true);
        DEFAULT_FORMAT.setIndenting(true);
        DEFAULT_FORMAT.setMethod("xml");
        DEFAULT_FORMAT.setEncoding("UTF-8");
    }

    public XAnnotatedContent(XMap xmap, XSetter setter, XGetter getter, XContent anno) {
        super(xmap, setter, getter);
        this.path = new Path(anno.value());
        this.type = setter.getType();
        this.valueFactory = xmap.getValueFactory(this.type);
        this.xao = xmap.register(this.type);
    }

    @Override
    protected Object getValue(Context ctx, Element base) throws IOException {<FILL_FUNCTION_BODY>}

    @Override
    public void decode(Object instance, Node base, Document document, List<String> filters)
                                                                                           throws Exception {
        // do nothing
    }

}

        Element el = (Element) DOMHelper.getElementNode(base, path);
        if (el == null) {
            return null;
        }
        el.normalize();
        Node node = el.getFirstChild();
        if (node == null) {
            return "";
        }
        Range range = ((DocumentRange) el.getOwnerDocument()).createRange();
        range.setStartBefore(node);
        range.setEndAfter(el.getLastChild());
        DocumentFragment fragment = range.cloneContents();
        boolean asDOM = setter.getType() == DocumentFragment.class;
        return asDOM ? fragment : DOMSerializer.toString(fragment, DEFAULT_FORMAT);
    
<methods>public void <init>(com.alipay.sofa.common.xmap.XMap, com.alipay.sofa.common.xmap.XSetter, com.alipay.sofa.common.xmap.XGetter, com.alipay.sofa.common.xmap.annotation.XNode) ,public void decode(java.lang.Object, org.w3c.dom.Node, org.w3c.dom.Document, List<java.lang.String>) throws java.lang.Exception,public void process(com.alipay.sofa.common.xmap.Context, org.w3c.dom.Element) throws java.lang.Exception,public void process(com.alipay.sofa.common.xmap.Context, Map<java.lang.String,java.lang.Object>, java.lang.String) throws java.lang.Exception<variables>public boolean cdata,public final non-sealed com.alipay.sofa.common.xmap.XGetter getter,public com.alipay.sofa.common.xmap.Path path,public final non-sealed com.alipay.sofa.common.xmap.XSetter setter,public boolean trim,public Class#RAW type,public com.alipay.sofa.common.xmap.XValueFactory valueFactory,public com.alipay.sofa.common.xmap.XAnnotatedObject xao,public final non-sealed com.alipay.sofa.common.xmap.XMap xmap