Re: [Tutor] Problems with creating XML-documents

2010-04-15 Thread Stefan Behnel
Hi, my main advice up-front: if you want good advice, give good details about the problem you face and enough background to let others understand what the real problem is and what your environmental constraints are. Karjer Jdfjdf, 15.04.2010 08:03: I know the theory of XML but have never us

Re: [Tutor] Problems with creating XML-documents

2010-04-14 Thread Alan Gauld
"Karjer Jdfjdf" wrote I'm having problems with creating XML-documents, because I don't seem to write it to a document correctly. Is that because you don't understand XML or because the output is not what you expect? How is the data being generated? Are you parsing an existing XML source or

Re: [Tutor] Problems with creating XML-documents

2010-04-14 Thread bob gailer
On 4/14/2010 4:16 PM, Karjer Jdfjdf wrote: I'm having problems with creating XML-documents, because I don't seem to write it to a document correctly. I have to write the document from a loop: doc.write('\n') for instance in query: if doc != None: text = str

[Tutor] Problems with creating XML-documents

2010-04-14 Thread Karjer Jdfjdf
I'm having problems with creating XML-documents, because I don't seem to write it to a document correctly. I have to write the document from a loop:     doc.write('\n')         for instance in query:        if doc != None:     text = str('\n' + \    ' ' +  st