Fix broken doc build, and add a comment to loadXML.