Download Delve® SOA Fast-Prototyping Toolkit (Beta 1.0)
| Tutorials - How To Declare an XML Element with Properties |
Page 2 of 2 |
There are two different ways that the “graph-points” element can be included in a type. First, it can be embedded as part of the type definition…

… or it can be defined outside the type and included in that using the “ref” keyword.

These two methods have exactly the same effect—the type “graph-def” consists of three to ten instances of the child element “graph-points.” If we use the second method, however, the graph-points element declaration is reusable—that is, we can reference it in any number of types using the “ref” keyword.
|
|
|