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

findall needs support for namespace prefixes #19

Open
apond opened this issue Feb 20, 2014 · 3 comments
Open

findall needs support for namespace prefixes #19

apond opened this issue Feb 20, 2014 · 3 comments

Comments

@apond
Copy link

apond commented Feb 20, 2014

Given the following xml:
<ns:root xmlns:ns="http://mynamespace">
<ns:items>
<ns:item id="1"/>
<ns:item id="2"/>
<ns:item id="3"/>
</ns:items>
</ns:root>

Expect:
This should return three item elements:
var items = opfXml.findall('items/item');
or
There should be a way to specify the namespace or it should assume the namespace of the current element.

Actual:
This returns an empty array of elements.

@anuradhag
Copy link

Will this be fixed. Is there any alternative to resolve this other than stripping of the namespace prefix?

@mackbrowne
Copy link

+1 really need this to work...

@Kami
Copy link
Contributor

Kami commented Oct 8, 2015

We are more than happy (and appreciate it) to take any community contributions for this feature :)

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

No branches or pull requests

4 participants