XQuery is a query language...do you mean convert the XML into a tree? Java has several DOM parsers...google is your friend in this realm.
...