-
Notifications
You must be signed in to change notification settings - Fork 0
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
use MODSReader on string-Objects #15
Comments
Hi Alexander, I've always meant to make the pymods parser more flexible to various inputs. My workflows have always involved local XML files, so I never got around to implementing that feature. I'm happy to hear that someone else is using pymods, so that will bump the priority up for me a bit. My family just welcomed our first child recently, so unfortunately I don't have much time to work on this at the moment. If you're comfortable submitting a PR implementing string parsing, I'll consider it for merging. Otherwise, it might be a little bit until I'm back in the office and ready to spend time on this. If you need a short-term solution, you can write out Best, |
Hello!
I'm trying to apply the MODSReader not to a xml-file (as in the examples provided) but rather on
requests.get
-responses I've tried transforming the xml-string into a file-like object usingio.StringIO
(which would be the usual way to deal with the issue in etree, I guess), but I'm getting aValueError
:Could you suggest me a way to pipe the xml-string directly into the parser?
Thank you very much!
The text was updated successfully, but these errors were encountered: