public boolean isIn(String containingTag) {
        return (openTags.size()!=0) && openTags.get(openTags.size()-1).equals(containingTag);
    }
Returns true if the immediate parent (i.e the last element in openTags)
is the tag with the given name
vespajlib/src/main/java/com/yahoo/text/XMLWriter.java