Backport upstream commit 37913d006d96a6bdcb963f4ca4889888dcce6094 to fix build with newer versions of libxml2 PR: 273213 Sponsored by: Blinkinblox