Hi, I just found out about the bulkloader function in the python sdk,
so I installed, and tried it out.
(I'm developing in java)
I have an xml file, which contains all the information I want to
upload (in fact it contains more than I need).
so, I have a quite complex xml file, like this:
<roottag>
<tag1>
<tag2>name1</tag2>
<tag3list>
<tag3 attr1="type1">value1</tag2>
<tag3 attr1="type2">value2</tag2>
</tag3list>
<tag4>
<tag5>misc1</tag5>
<tag6>misc2</tag6>
</tag4>
</tag1>
<tag1>
...
</tag1>
...
</roottag>
and I would like to create these entities:
kind1{
name //from <tag2>, also, this is the key of the entity
list.d1 //from attr1
list.d2 //from <tag3>
data1 // from <tag5>
data2 // from <tag6>
}
subkind1{
id // auto-generated
type //from attr1
value //from <tag3>
foreignkey // points to kind1 the value is contained in <tag2>
}
Also it would be great if kind1 would have a list property containing
the keys of all connecting subkind1, but since subkind1 doesn't have
explicit id, I'm not sure if it's even possible.
I've read some articles about the topic, but most of them load from
csv file, and couldn't even find reference on how to handle
attributes.
So I think I'm able to map tags to simple properties, but I'm quite
lost when it comes to lists, and attributes...
Sorry for asking such a direct question, but unfortunately I'm not
familiar with Python at all.
So is it possible, to load such data to datastore with bulkloader? And
if it is, then how?
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.