G
Guest
I am trying to use the following xpath to get nodes that comply with certain
criteria and have tested the xpath using XMLSpy. The xpath also works fine in
the vbscript that showed it as a sample. Using C# however, nothing is
returned since the "<" seems to be causing a problem. Visual Studio .NET 2003
seems to be using xpath 1.0, because using "le" works in XMLSpy but fails in
my code.
Is there any way I can modify the <= or do something to this xpath for it to
work with C#? I tried a @ in front of the variable holding the xpath and that
also failed. I have not been able to find anything anywhere for this case.
Please help.
string xpath = @"//Parent/Child[Completed=1 and Date <= """ + ClaimDate +
"""]";
criteria and have tested the xpath using XMLSpy. The xpath also works fine in
the vbscript that showed it as a sample. Using C# however, nothing is
returned since the "<" seems to be causing a problem. Visual Studio .NET 2003
seems to be using xpath 1.0, because using "le" works in XMLSpy but fails in
my code.
Is there any way I can modify the <= or do something to this xpath for it to
work with C#? I tried a @ in front of the variable holding the xpath and that
also failed. I have not been able to find anything anywhere for this case.
Please help.
string xpath = @"//Parent/Child[Completed=1 and Date <= """ + ClaimDate +
"""]";