If your xml contains a deep hierarchy of elements, such as
<products> <product type='A'> <component>A-one</component> <component>A-two</component> </product> <product type='B'> <component>B-one</component> <component>B-two</component> </product></products>
the path expression in the value() method can be nested like this:
CatalogDescription.value('((/products/products)[2])/component[2])', 'var
↧