This last couple of weeks I've been really getting into XPath, and SQL Server's sp_xml_preparedocument and OPENXML() syntax.
I keep finding cool things to do with it but I can't see a way around the problem of sp_xml_preparedocument accepts only a local variable as the source document, which limits your document size to VARCHAR(8000) size -or half that for NVARCHAR. I have not seen that limit yet in my work, but it still seems a little low. What about ntext guys?
I'm gonna have some real-world XPath coming soon, this is just a pre-post warning :)