XmlMapping.prefix_mappings property. Returns XML namespace prefix mappings to evaluate the [XmlMapping.xpath](../xpath/)....#1</text><text>Text element #2</text></root>' xml_part = doc...#1</text><text>Text element #2</text></root>' , xml_part . data...