Thanks, David - and I agree, XML in a relational database might not be the best choice in all cases. But that discussion aside - what I was really hoping...
Quite nice - however, your stored proc (like all the ones I've seen so far) does not take into account space used by XML indices - and that space is...