XmlMapping.prefix_mappings property. Returns XML namespace prefix mappings to evaluate the [XmlMapping.xpath](../xpath/)....'/root[1]/text[2]' , "xmlns:ns='http://www.w3.org/2001/XMLSchema'"...self . assertEqual ( "xmlns:ns='http://www.w3.org/2001/XMLSchema'"...