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
Post a Comment