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
XPath queries do not work with namespaces and fixed encoding property #17
Conversation
The fix registers any namespaces on the The only other issue I think might still exist is if there are any namespaces that are declared in nested elements - for example: <?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<entry xmlns:nested="http://purl.org/dc/elements/1.1/">
<nested:title>Atom-Powered Robots Run Amok</nested:title>
<dc:language>en-us</dc:language>
</entry>
</feed> The |
Encoding property of ONOXMLDocument is never set
Also fixed rhodgkins#1 |
…when creating a NSString
…hen creating a NSString
XPath queries do not work with namespaces and fixed encoding property
Thanks so much for your help on this, @rhodgkins. This is excellent work. I'll tag a new release now. |
No problem @mattt, thanks for the great working creating this in the first place! |
Hello (again!)
I noticed that any XPath queries containing namespaces
//ns1:tagname
would fail with the error:I've added a test case for this issue and the Travis build file to ensure the tests on my fork pass :)
https://travis-ci.org/rhodgkins/Ono/builds/26876794