Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
Instrument code to check if lixml2 is a caveat
Browse files Browse the repository at this point in the history
  • Loading branch information
Minoru committed May 15, 2016
1 parent f097cdb commit 521ea77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rss/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,13 @@ feed parser::parse_buffer(const char * buffer, size_t size, const char * url) {

feed parser::parse_file(const std::string& filename) {
doc = xmlReadFile(filename.c_str(), NULL, XML_PARSE_RECOVER | XML_PARSE_NOERROR | XML_PARSE_NOWARNING);
printf("parser::parse_file: doc = %p\n", doc);
if (doc == NULL) {
throw exception(_("could not parse file"));
}

xmlNode* root_element = xmlDocGetRootElement(doc);
printf("parser::parse_file: root_element = %p\n", root_element);

feed f = parse_xmlnode(root_element);

Expand Down

0 comments on commit 521ea77

Please sign in to comment.