Wiki Home

XML Recursion

Namespace: SoftwareEng

Does XML allow for recursion of entities? For example, could my DTD state that an element named "node" contains 0 or more nodes below it?

[!ELEMENT node (node*)]

This could also be needed to show a series of hooks, or a chain-of-responsibility pattern, in an object scenario.
-- Randy Pearson
I understand...
An element can contain other elements, and recursion is allowed. For obvious reasons you would not make a recursive element "Required".
Category XML
( Topic last updated: 2000.05.11 11:52:20 AM )