Support XPath in XML Documents with Namespaces Specified
gfs opened this issue · comments
Is your feature request related to a problem? Please describe.
The current implementation of the XPath queries from #420 doesn't support XML documents which specify a namespace.
Describe the solution you'd like
Options:
- Somehow automatically parse the namespaces from the XML
- Add a field for users to specify namespaces to use for the query
- Strip the namespaces and treat elements as local
Additional context
See #420 for samples which work without namespace and fail to work with namespace. I've done some quick experiments but have not cracked how to properly associate the namespace. Once namespaces are supported they will also have to be specified when relevant in the xpath query itself. Might also require some better error handling around loading namespaces and queries.