-
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
Ignoring undefined namespaces? #156
Comments
Another frustrating issue with |
I've run into the same issue when parsing something as simple as |
Ooh thanks @jvkerckh I didn't put together than the global stack never is never cleared. This is pretty tricky because I was reading through XML files in a loop (parallelized to make it more complicated) with a I feel like it would be very helpful if that was documented, or in the Otherwise a very useful package :-) |
I have snippets of an XML Document resulting from a
findall("//x:math", node, ["x"=>"http://www.w3.org/1998/Math/MathML"])
, but these nodes have references to namespaces defined elsewhere.I'm wondering if I can ignore the undefined namespace, basically remove all
cellml:
attributes from a Document.I suppose I could do
findall("//*[@cellml:*]", node)
and then justdelete!
the attributes.This is sort of an annoying hack, as other documents might have other namespaces.
The text was updated successfully, but these errors were encountered: