Added private method LoadResourceStream.
2 constructors merged into 1, used null instead of XDocument.