dtolabs / yana2

Yet Another Node Authority ... because you wanted an agile Real-Time Service Model (RTSM)
8 stars 1 forks source link

Include node parent/children info in XML format #22

Closed ahonor closed 12 years ago

ahonor commented 12 years ago

Include subelements to reference parent and children.

<nodes>
  <node id="1" name="qa.server.com" type="Node" tags="QA">
    <description>The QA server</description>
    <attributes>
      <attribute name="hostname" value="qa.server.com" required="false"/>
    </attributes>
    <parents>
      <node id="2" name="My_Location" type="Location"/>
    </parents>
    <children>
      <node id="3" name="Jetty" type="Software"/>
    </children>
  </node>
</nodes>

It is only required to include ID, name and NodeType for the child and parent info.

      <node id="[ID]" name="[name]" type="[NodeType]"/>