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