Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dt-iland opened this issue Sep 11, 2018 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@dt-iland
Copy link

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?

@erinxocon
Copy link
Owner

Got it, it's something I overlooked when first writing it. I'll work on it this weekend!

@erinxocon erinxocon added the enhancement New feature or request label Sep 20, 2018
@dt-iland
Copy link
Author

dt-iland commented Sep 20, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants