Hello,

I want to upload a bunch of xml files from my harddrive to the
Datastore.

Currently, I made a simple form :

                <div><textarea name="FileName" rows="1"
cols="40">XmlFile1</textarea></div>
                <div><textarea name="XmlDataToAdd" rows="3"
cols="40">AddHere</textarea></div>
                <div><input type="submit" value="AddFile"></div>

And then I made a python script to do :

data = {
'FileName': 'XmlFile1',
'XmlDataToAdd': '<<>>Test&lt;&lt;&gt;&gt;'
}

urldata = urllib.urlencode(data)
url = 'http://localhost:8080/AddXMLProcess'
results = urllib.urlopen(url, urldata).read()


The problem is the xml file's special characters aren't encoded
properly.
What should I be trying to do?

-- 
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-appeng...@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