0

Is it possible to use variable tag name in VB.Net XML Axis query???

e.g. contacts....<varTag>.Value

Where "varTag" is variable name and the real tag name will be known at only runtime.

Thanks.

wirol
  • 49
  • 1
  • 6

1 Answers1

0

I don't think you can do it with the VB.NET XML axis syntax, but you can use the Element method (just write .Element(varTag) instead of .<varTag>)

Thomas Levesque
  • 286,951
  • 70
  • 623
  • 758