The keystone.common.serializer Module

Dict <–> XML de/serializer.

The identity API prefers attributes over elements, so we serialize that way by convention, with a few hardcoded exceptions.

class keystone.common.serializer.XmlDeserializer

Bases: object

walk_element(element, namespace=False)

Populates a dictionary by walking an etree element.

class keystone.common.serializer.XmlSerializer

Bases: object

populate_element(element, value)

Populates an etree with the given value.

keystone.common.serializer.from_xml(xml)

Deserialize XML to a dictionary.

keystone.common.serializer.to_xml(d, xmlns=None)

Serialize a dictionary to XML.

Previous topic

The keystone.common.router Module

Next topic

The keystone.common.sql.core Module

This Page