Funny to read this now while I'm working on an XML schema for database queries in one system I'm developing (to be translated into SQL down the line).