def METHOD_NAME(self, writer, ttFont):
    for i, doc in enumerate(self.docList):
        if isinstance(doc, (list, tuple)):
            doc = SVGDocument(*doc)
            self.docList[i] = doc
        attrs = {"startGlyphID": doc.startGlyphID, "endGlyphID": doc.endGlyphID}
        if doc.compressed:
            attrs["compressed"] = 1
        writer.begintag("svgDoc", **attrs)
        writer.newline()
        writer.writecdata(doc.data)
        writer.newline()
        writer.endtag("svgDoc")
        writer.newline()