-
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
XPath not working as expected with findall #155
Comments
Your document has a namespace. See here In particular:
So for yours:
|
Thanks! |
@kescobo I have another case here that I think would be better not lost to Slackhole. julia> str = """<cn type="e-notation" cellml:units="molar_per_minute">5 <sep/>-2</cn>"""
"<cn type=\"e-notation\" cellml:units=\"molar_per_minute\">5 <sep/>-2</cn>"
julia> parsexml(str)
EzXML.Document(EzXML.Node(<DOCUMENT_NODE@0x0000000002880610>))
julia> parsexml(str).root
ERROR: AssertionError: isempty(XML_GLOBAL_ERROR_STACK) I'm wondering if I can ignore the undefined namespace, basically remove all I suppose I could do If you have any thoughts, I'd really appreciate it! |
Alas, I have no idea. The only reason I knew how to answer the previous question is because I'd run into the same issue before and someone else helped me. I'm no expert! Good luck :-/ |
I cannot seem to make
findall
work as intended. According to https://www.w3schools.com/xml/xpath_syntax.asp, it seems like the Xpath//ci
should getcompartment
,k1
,S1
, butfindall
returns empty Node.The text was updated successfully, but these errors were encountered: