Derek Basch <[EMAIL PROTECTED]> wrote:
It places the XSL Style Sheet reference at the end the generated XML instead of the beginning.
doc = imp.createDocument("http://172.20.0.70:81/receipt/", 'receipt', doctype) doc.appendChild(doc.createProcessingInstruction(...))
The PI node is appended to the end of the Document node, after the root Element (which is created implicitly by the createDocument method).
To put the PI first in the Document's childNodes:
pi= doc.createProcessingInstruction(...) doc.insertBefore(pi, doc.documentElement)
-- Andrew Clover mailto:[EMAIL PROTECTED] http://www.doxdesk.com/ _______________________________________________ XML-SIG maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/xml-sig