problem with uploading and downloading xml document from Datastore using google app and python -


i creating 1 xml document in google app , storing blob while fetching datastore how convert again xml doc

class xmlstore(db.model):    xmlref=db.blobproperty() 

creating xml doc this:

docref=document() fp=docref.createelement("client") fp.setattribute("id","21783") docref.appendchild(fp) 

storing datastore:

x=xmlstore(xmlref=str(docref))   x.put() 

while retriving back:

result = db.gqlquery("select * xmlstore").fetch(1) 

while printing on webpage:

for response in result:  self.response.out.write(response.xmlref) 

its giving me xml.dom.minidom.document instance @ 0x6a2bddb0b5aef438
how in xml..

have @ python's documentation xml.dom.minidom toxml method.

you say:

its giving me xml.dom.minidom.document instance @ 0x6a2bddb0b5aef438

call .toxml() method of object.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -