-
Notifications
You must be signed in to change notification settings - Fork 1
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
can't use a non-prefix? #8
Comments
Hi @mdsumner initially the prefix had to be set manually, the reason why we still have it as legacy arg. At some point I wrote some code then to inherit it from the xml namespace definition, no need to declare this prefix from user viewpoint. The prefix for 'http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0' namespace is inherited from xml2; If no specific (local) xmlns is given by Thredds, xml2 sets it to 'd1', that's the default behavior of xml2. IMHO we should get rid of the |
@mdsumner your example reminds me of Henry Ford's quote ...
I can't recall the circumstances that drove the need for handling prefix, and I would defer to @eblondel to guide us to the right solution which is to either remove the optional If it the choice is to fix the behavior then I think the only place we need to address it is here. We would just have to test if the Maybe something along the lines of ...
But if it really isn't necessary at all for the user to optionally manage it then I am fine with removing its exposure. |
ah ok, I need to explore more - but the immediate motivation is I couldn't get it to work with this thredds, so I picked on the first thing that seems to a blocker , and maybe that's not the real issue 🙏 |
In the meantime... might you try the
|
that works: thredds::CatalogNode$new(uri, prefix = "") thanks, I'll keep exploring |
just fyi I can't make any sense of the xml I was trying to explore with this package, it doesn't work at all and I think their index is a bit broken, doesn't seem to be a problem in this package. I will explore their stuff from the inside 🙏 |
I'm not sure my understanding is correct, but I want to avoid the "d1" prefix and not have one:
?
The text was updated successfully, but these errors were encountered: