-
Notifications
You must be signed in to change notification settings - Fork 123
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
XMLParsedAsHTMLWarning #170
Comments
Ditto. Curious if other users aren't hitting this? |
I see this too. |
So yes, it was intentional to parse the XML this way. I don't recall this warning message appearing in the past, so one of the dependencies (BeautifulSoup?) must have added it. I can take a look at silencing the warning, or if someone else happens to look at it first, I'd be happy to review the change. When I wrote this library parsing as XML would be too strict and parsing would fail, because SGML is a superset of XML. The HTML parser is more forgiving and just ignores the bits it doesn't understand. |
Thank you, @jseutter! I haven't looked at ofxparse, but this commit does exactly what is needed. I imagine you simply need to put it in the right file in ofxparse. |
I see the following warning when inputting xml ofx file
Going through previous decisions and code behavior, I'm thinking it is intentional that HTML parser is used for XML (e.g. here)
I am thinking the warning shouldn't happen rather than me going in and specifying XML in the constructor - but might be misguided. Here is one more issue I saw related to this: https://github.com/EnergieID/entsoe-py/issues/180
My issue is not the same, I am actually using ofxparse in the context of beancount-reds-importers (FWIW)
Here's an example of what my input file is starting with:
The text was updated successfully, but these errors were encountered: