-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ncbi_searcher XML parsing error #64
Comments
Good catch. Yep, see #65 |
you sending a PR? |
Yes, I will send a PR if I can get it fixed. I think I can fix it shortly. Thanks for the quick response! |
thx |
resolves #64; fixes ncbi_searcher XML parsing error
I ran into an error when using
ncbi_searcher
in my package today.It had worked in the past, so something must have changed in the past few months.
The error can be produced by running the example code for
ncbi_searcher
:The line of code (#143) that causes the error is:
It seems that
httr::content
is returning a class with a slightly different name than the onesXML::xpathApply
expects:I noticed that Hadley Wickham made the
httr
package.He also made the
xml2
package, which seems to do many of the same things as theXML
package.I wonder if he changed the classes that
httr::content
outputs in order to be compatible with his newxml2
package.Anyway, it looks like there is a function
xml2::xml_find_all
which dose the same thing asXML:: xpathApply
.Using some simple tests, I was able to get
xml2::xml_find_all
to work withhttr::content
as far as I can tell.I guess we should switch to using
xml2
instead ofXML
?I am working on getting around the error now.
The text was updated successfully, but these errors were encountered: