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