1SAX.setDocumentLocator() 2SAX.startDocument() 3SAX.startElement(dia:diagram, xmlns:dia='http://www.lysator.liu.se/~alla/dia/') 4SAX.characters( 5 , 3) 6SAX.startElement(dia:diagramdata, dia:testattr='test') 7SAX.endElement(dia:diagramdata) 8SAX.characters( 9, 1) 10SAX.endElement(dia:diagram) 11SAX.endDocument() 12