Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.


Provides logic for walking down XML tree and pulling data.

Inherits From: expected_type



View source

Parses XML string and returns object representation of relevant info.

xml_str The XML string.

An IndexDefinitions object containing the result of parsing the XML.

ValidationError In case of malformed XML or illegal inputs.


View source

Processes XML <datastore-index> nodes into Index objects.

The following information is parsed out:

  • kind: Specifies the kind of entities to index.
  • ancestor: True if the index supports queries that filter by ancestor-key to constraint results to a single entity group.
  • property: Represents the entity properties to index, with a name and direction attribute.

node <datastore-index> XML node in datastore-indexes.xml.