Resource Name:

Sub-tree pruning


Resource Desc:

While preparing my talk for Teched, I figured out a trick for getting simple sub-tree pruning when running XPath queries via SqlXml. Sub-tree pruning is the ability to filter sub-trees of an Xml hierarchy. For example, let’s say I had an EmployeeList element with Employee sub elements. I would like to return the EmployeeList element, but only include Employee sub-elements where the employee had greater then 10 years of experience.


Resource URL:


Rating: 0


# Times Viewed: 468