• 11Aug

    Today I wanted to use a simple XPATH function in my orchestrationto find the maximum value of a sequence number in a set of nodes. So I booted up XMLSpy and loaded the xml schema. Simple problem, simple solution:

    max(//sequence_nr)

    Wrong.. biztalk does not support xpath 2.0. Even worse, I cannot even program a helper function since .NET 3.5 does not support XPATH 2.0. This was kind of hard to verify since msdn states something different.

    Since my records are ordered, luckily I could also pick the last record. Which resulted in the uglier xpath statement:

    string(//record[count(//record)]/sequence_nr)

    That the actual statement was a lot longer since it had namespaces and some subnodes. And I really don’t see how I could do this in xpath when the records were not sorted.

    This post in microsoft connect I found acknowledges that xpath 2.0 is still not supported in .Net framework 3.5

    I hope they will manage to fit support in framwork version 4.0

    Tags: ,

   

Recent Comments

  • I don't have the "PossibleProjectExtensions" as part of the ...
  • I am trying to call a java-based web service using certifica...
  • Yes, this is a cute little bug...Thank you for providng the ...
  • This is why I like pim.waaijenberg.net. Surprising post....
  • Thanks Patrick.. So there's a hotfix now. http://support.mic...