XML is just a text file formatted in a certain way, like HTML except you aren't using tags to control display, you use tags to explain the data. Have a look at the J2EE Tutorial chapter: Understanding XML.
I may be assuming incorrectly that result set refers to returned results from a database. If so, sometimes they have an XML mode that will return results already formatted for you. I know at least MySQL can return results like this.