Working with the xml documents