Platinum Solutions Corporate Website


The answer you entered to the math problem is incorrect.
Christopher Pierce Wed, 1969-12-31 20:00

I don't think you are necessarily limited to hierarchical
structures.  In XML, there are the ID and IDREF attribute types to
reference entities outside the hierarchy.

For example, a Spring configuration file is essentially a graph:

<bean id="node1" class="MyClass"/>
<bean id="node2" class="MyOtherClass'>
    <property name="myClassRef" ref="node1"/>
</bean>
<bean id="node3" class="MyOtherClass'>
    <property name="myClassRef" ref="node1"/>
</bean>
 

You could make the argument that in this example "node1" is a child
of "node2" and "node3", but we could have created a "Tuple" element
that would relate nodes without a notion of ownership (and a "Graph"
element, which would collect of Tuples to be thorough).

On another note; I do dislike the attempts to force "programming" logic into XML, which is what XSLT does to some extent. 
I generally find implementations of "scriptable"
XML to be incomprehensible.

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2.
The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.

More information about formatting options