Maybe consider writing a -SELECT- statment that reduce the elements in the output. Then using XmlAdpater or CursorToXml may work.
If you need to represent your data relationally. Use the XmlAdapter, then add each cursor's schema to it (AddTableSchema), then call XmlAdapter.ToXml().
If you nee to represent your data in tree form. Write Custom XML.
My Opinion, may be right or wrong, but it is just an opinion.
Terry Rooks
Software Systems Architect
Microsoft Certified Solution Developer.Net
If at first you don't succeed, then skydiving definitely isn't for you.