implemented all xml factory.