In Query Analyzer (MSsql) one enters "<" for less than, however, pasting the query into an xml file for another routine to read is syntactically incorrect. That is, "<" signals a tag to follow and the query bombs. I'm unsure if changing "<" in an xml file to "<" is the workaround. Any suggestions? Thanks.