Download Delve® SOA Fast-Prototyping Toolkit (Beta 1.0)
| Tutorials - How To Use XPath to Set and Get Attribute Values |
Page 2 of 3 |
If there a multiple attributes with the same name, then an accessor expression may evaluate to multiple values. When this occurs, Tectonic stores these values in an array. Continuing with the example from page one, let’s consider an element “parts” with a number of “part” children, each one of has a “dimen” element expressing the part’s dimensions.

We can use an accessor expression to obtain the “units” values of all parts…

and display those values like so:

|
|
|