Here is my model:
class NoteModel(db.Model):
    title = db.StringProperty(multiline=False)
    content = db.ListProperty(type('string'))
And the values are:
title:'Foo'
content: ['bar']

And the result of:

class getANote(webapp.RequestHandler):
    def get(self):
        query=Models.NoteModel.all()
        fnote=query.get()
        xmlrep=fnote.to_xml()

        self.response.out.write(xmlrep)

called from:

function stateChanged()
{
        if (xmlHttp.readyState==4)
        {
                var xmlDoc=xmlHttp.responseXML;
                document.getElementById("txtHint").innerHTML=xmlDoc;

        }
}

But the result is:

Exactly, nothing. What am I doing wrong?

On Mar 20, 4:25 pm, Marcelo Sena <marceloslace...@gmail.com> wrote:
> I know what the docs say, but what kind of xml is that, is a string or
> a object and what is the type of that object? I tried  using type() on
> it and it returned nothing.
> I need to turn my model into a XML to use it in a javascript.
> Regards,
> Marcelo Sena.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to