add Xml creation custom functions

I have been using these functions for interacting with an xml web service and they handle any scenario I could think of.