Are there any pre-existing methods in .NET to detect/prevent an xpath injection attack?
I can forsee 2 examples but there are likely many more.
e.g.
Just avoid building XPath expressions using string concatenation. Use parameters/variables instead.