Centralized the reading of XML files. I also changed the method itself
so that the builder now always gets an inputStream rather than an
occasional string src. Hopefully this resolved issues related to opening
XML documents.