I was wondering if anyone knew how to get the name of the main root node (GetThisNode) programatically. Because of multiple forms and code reuse, I want to be able to build my Xpaths behind the scenes without having to worry about the user changing any critical information:
docXN = docXN.SelectSingleNode
("/my:GetThisNode/s2:FormData/s2:Header/s2:Location/s2:District/s4:Id", this.NamespaceManager);