Added comments to XMLFactory methods