have "absolute" xpath, want to get the node back
Posted on 2004-09-23
I have loaded and xsd file into a treeview control, then saved "full path" to the node. When I reload this .xsd file later, I just want to select this particular node programatically. I have this line:
nd = mSchemaXMLDoc.SelectSingleNode( "self::/" + mCurrentSchema.TagXPath.Replace( "\\", "/"));
wherein the string argument to SelectSingleNode evaluates to :
giving the error: "The expression passed to this method should result in a NodeSet"
What am I doing wrong?