I'm trying to follow the hierarchical xml download instructions at
http://bulkloadersample.appspot.com/ using the java appengine. This is
my config file:
transformers:
- kind: ParentEntity
connector: simplexml
connector_options:
xpath_to_nodes: /Parents/Parent
style: element_centric
property_map:
- property: __key__
external_name: key
export_transform: transform.key_id_or_name_as_string
- property: name
external_name: name
# Type: String Stats: 30 properties of this type in this kind.
- property: children
external_name: Children
import_transform:
transform.list_from_child_node('Children/Child')
export_transform:
transform.child_node_from_list('Child')
And here is my ParentEntity definition:
package experiment.dataexport;
import java.util.List;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;
@PersistenceCapable
public class ParentEntity
{
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
public Key key;
@Persistent
public String name;
@Persistent(defaultFetchGroup = "true")
public List<ChildEntity> children;
}
But when I run the downloader, I get:
google.appengine.ext.bulkload.bulkloader_errors.ErrorOnTransform:
Error on trans
form. Property: children External Name: Children. Code:
transform.child_node_fro
m_list('Child') Details: 'NoneType' object is not iterable
Individual XML downloads of ChildEntities and ParentEntities work
perfectly (without the children property, anyway), but I am
desperately looking for a way to include the children property as
nested XML inside of each ParentEntity. Are there any working
examples of this anywhere, or does anyone have any suggestions for a
next step?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" 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-java?hl=en.