SAX.setDocumentLocator() SAX.startDocument() SAX.startElement(dia:diagram, xmlns:dia='http://www.lysator.liu.se/~alla/dia/') SAX.characters( , 3) SAX.startElement(dia:diagramdata, dia:testattr='test') SAX.endElement(dia:diagramdata) SAX.characters( , 1) SAX.endElement(dia:diagram) SAX.endDocument()