added methods for returning Scala XML objects