|The stupid question is the question not asked|
I know I've struck the same problem, where the order in which the modules were loaded determined whether I got that error or not.
And I know the modules with which I had this trouble were not the 2 that you have specified ... but I can't remember precisely which modules it was for me.
I also know that I didn't ever come to an understanding of exactly what was going wrong ... but I know I found a way to make the problem vanish, and I *think* (not entirely sure) that the problem vanished once I made sure that it was the same (MinGW port of gcc) compiler that had built perl && the 2 problematic modules && all third party libraries upon which the modules relied.
So maybe try that (if applicable). At least, if you think it might be worth the effort, make sure that Digest::SHA1, XML::LibXML, and your XML library are all built by the same compiler - even if that's not the compiler that actually built perl.
What's your perl -V ?
In reply to Re: if Digest::SHA1 loaded Can't load LibXML/LibXML.dll Invalid access to memory location