public void simple7() {
        StringFieldValue text = new StringFieldValue("<html><head><title>Diary</title></head><body>I live in San Francisco</body></html>");
                                                    //012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

        SpanTree tree = text.getSpanTree("html");

        Iterator<Annotation> annotationIt = tree.iterator();

        while (annotationIt.hasNext()) {
            Annotation annotation = annotationIt.next();
            if (annotation.getType().getName().equals("markup")) {
                //we have an annotation of type markup, remove it:
                annotationIt.remove();
            }
        }
    }
NOTE: This method is provided only for completeness. It analyzes spans annotated with
&quot;markup&quot;, and splits them into several shorter spans annotated with &quot;begintag&quot;
and &quot;endtag&quot;.

@param tree       the span tree to annotate into
@param input      a SpanNode that is annotated with &quot;markup&quot;.
@param text       the text that the SpanNode covers
@param beginTag   the type to use for begintag annotations
@param endTagType the type to use for endtag annotations
@return a list of new spans to replace the input
document/src/test/java/com/yahoo/document/annotation/DocTestCase.java