Skip to content

Add support for passing an XML namespace map through requests_xml #3

@dt-iland

Description

@dt-iland

requests_xml seems to return XML with namespaces without issue. However, unless I've missed something, it doesn't appear there is a way to pass a XML NSMAP variable through requests_xml so that you can easily access XML with namespaces using XPATH.

For the instances where I'm forced to use XML namespaces, I've had to revert back to using lxml/etree. Would be be possible to add the NSMAP functionality to the top level requests_xml functions so that the XML namespace mapping is properly passed down to the lxml functions used under-the-hood?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions