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

Re: XML namespace advice



Andy Bierman writes:
>   Q1: Is it an error if a PDU (e.g., <hello> or <rpc>) is received by
>       the peer, which does not use namespaces?  Or is it okay to set
>       the default namespace to the NETCONF NS in this case?

Does this fit under the 'be liberal in what you accept'
banner?  JUNOS tries to follow that, accepting either
an empty or an accurate namespace.

>   Q2: Are xmlns declarations special, and not supposed to be
>       included in the list of replicated attributes?  All the
>       document examples show them replicated in the <rpc-reply>.

They are special, but only slightly.  JUNOS echoes them all,
but I know that some XML parsers discard unused namespaces,
so an xmlns:foo attribute may be trimmed from an element where
nothing in it or its children reference that prefix.  This
trim happens in the parser, so the netconf implementation
may never see the xmlns attribute.

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/>