I am learning my way into an xquery database system. We are converting SQL databases to XML. A very handy idiom or hack to know about that I have not seen so far would be how to quickly run the equivalent of the dumb SQL query one often starts with. Given table named "account" and knowing it's reasonably sized, tell the database "select * from account;" just to see what happens.
With XQuery, that's not so easy to do. Has anybody settled on a recipe for this kind of thing, maybe something to do with getting local-name?