G
Guest
Thanks in advance to anyone who can help 
I'm trying to extract a specific NodeSet out of an XML file; however, I'd
like to include a C# string variable as part of the XPATH statement; so far
I've been unsuccessful and I'd like to know if this is even possible and if
so how to do it.
An example:
XMLDOC.SELECTNODES(/root/child[@attrname=\"csharpvariable\"])
(sees the literal 'csharpvariable', not the actual underlying C# variable
value..
I've also tried:
XMLDOC.SELECTNODES(/root/child[@attrname=\"" + csharpvariable + "\"]")
and it still simply sees the literal 'csharpvariable'

I'm trying to extract a specific NodeSet out of an XML file; however, I'd
like to include a C# string variable as part of the XPATH statement; so far
I've been unsuccessful and I'd like to know if this is even possible and if
so how to do it.
An example:
XMLDOC.SELECTNODES(/root/child[@attrname=\"csharpvariable\"])
(sees the literal 'csharpvariable', not the actual underlying C# variable
value..
I've also tried:
XMLDOC.SELECTNODES(/root/child[@attrname=\"" + csharpvariable + "\"]")
and it still simply sees the literal 'csharpvariable'