changed to create xml object from string