-
Notifications
You must be signed in to change notification settings - Fork 36
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 doesn't return anything with document with namespace #127
Comments
I also tried passing namespaces to julia> lst_when = findall("//Placemark/Track/when/text()", kmls, namespaces(kmls))
0-element Array{EzXML.Node,1} but it didn't helped |
You'll need to give some explicit name to the default anonymous namespace. Also, please don't forget to mention namespaces in the Xquery:
|
Thanks @bicycle1885 for your help. It's quit odd to have to pass An other odd API idea is that I absolutely need to overwrite default namespace name I'm wondering if an other approach which might fallback to default namespace shouldn't be used. Anyway thanks again for your help... it helped me much! |
The gory details of XPath are so clumsy that trying to do some fancy stuff may result in more confusing APIs. If you have any suggestions or improvement ideas, feel free to open a proposal issue here. |
Hello,
I'm trying to parse a KML file sample.kml with
gx:Track
tagMy code is:
but I don't get anything.
If I remove namespace in kml file like in sample_no_ns.kml I get appropriate result ie I wonder if
findall
function handle correctly namespaces (or if that's a misunderstanding from my side how EzXML is working).I did a similar program in Python cleder/fastkml#37 (comment) and it works fine
Any idea what is wrong?
findall
shouldn't return an emptyArray
Kind regards
The text was updated successfully, but these errors were encountered: