Skip to content

Commit

Permalink
#6472: Revert to xmlParseFile for Linux for the moment being
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jan 28, 2024
1 parent dacbe45 commit 0d5ca6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/xmlutil/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ Document::Document(xmlDocPtr doc):
{}

Document::Document(const std::string& filename) :
// switching to xmlReadFile seems to have broken XPath queries, reverting this change in non-Windows platforms for now
#if WIN32
_xmlDoc(xmlReadFile(filename.c_str(), nullptr, 0))
#else
_xmlDoc(xmlParseFile(filename.c_str()))
#endif
{}

Document::Document(std::istream& stream) :
Expand Down

0 comments on commit 0d5ca6f

Please sign in to comment.