Re: [XML-SIG] Generating XML from scratch

2005-02-16 Thread Uche Ogbuji
On Wed, 2005-02-16 at 14:39 -0500, Ryan Tomayko wrote: > You may also want to consider using an XML aware template language: > > For my own preference, I really dislike hybrid XML template languages. They seem hacky and too much of a blurring of the layers to m

Re: [XML-SIG] Generating XML from scratch

2005-02-16 Thread Ryan Tomayko
You may also want to consider using an XML aware template language: Ryan On Feb 16, 2005, at 1:55 PM, Uche Ogbuji wrote: On Wed, 2005-02-09 at 12:46 -0700, John W. Shipman wrote: I've been all through python.org site and carefully read ``Python & XML'' by Jones a

Re: [XML-SIG] Generating XML from scratch

2005-02-16 Thread Uche Ogbuji
On Wed, 2005-02-09 at 12:46 -0700, John W. Shipman wrote: > I've been all through python.org site and carefully read ``Python > & XML'' by Jones and Drake, but I can't find any body of practice > about the generation of XML files from scratch. All the existing > practice seems to be about reading

Re: [XML-SIG] Generating XML from scratch

2005-02-13 Thread Andrew Clover
John W. Shipman <[EMAIL PROTECTED]> wrote: True for Python 2.3, but my principal workstation still has Python 2.2, and even when I use the factory methods, the .ownerDocument attribute of the DocumentFragment is None. Ugh, you're right, it's a typo in createDocumentFragment: d = DocumentFra

Re: [XML-SIG] Generating XML from scratch

2005-02-12 Thread Andrew Clover
John W. Shipman <[EMAIL PROTECTED]> wrote: Look under the last chapter, ``Creating a document from scratch.'' I use the constructors such as Document() and Element() in that minidom version, but now they want me to use the .createElement() and other factory methods from the Document object. They al

Re: [XML-SIG] Generating XML from scratch

2005-02-09 Thread Mike Hostetler
On Wed, 9 Feb 2005 12:46:19 -0700 (MST), John W. Shipman <[EMAIL PROTECTED]> wrote: > I've been all through python.org site and carefully read ``Python > & XML'' by Jones and Drake, but I can't find any body of practice > about the generation of XML files from scratch. All the existing > practice