[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subelements



Johan Rydberg writes:
>Why are configurations named with an subelements of <source> or <target>
>and not text payload of the element?  This should make it impossible to
>have a configuration named "config", for example.

I think you have it backwards, or I'm misunderstanding you.

By using named subelements, we allow extensibility such as:

  <source>
    <divine-inspiration xmlns="http://di.example.net"/>
  </source>

and:

  <source>
    <mythology xmlns="http://myth.example.net";>greek</mythology>
  </source>

or even:

  <source>
    <file>config</file>
  </source>

Thanks,
 Phil

--
to unsubscribe send a message to netconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>