Current integration of NormalizedNodes and XML attributes is tacky in multiple ways:
- ImmutableNormalizedNodeStreamWriter completely ignores attributes
- attribute streaming is bolted on as a separate NormalizedNodeStreamWriter interface
- attributes are Map<QName,String> pairs, which means they are not normalized
- the integration completely ignores RFC7952 guidance
- attributes do not contribute to hashCode/equals
The only user of attributes is NETCONF, which uses yang.data.api.ModifyAction, a manifestation of RFC6241 Section 7.2 – which should be easy to update.
- blocks
-
YANGTOOLS-960 Update NormalizedNodeStreamWriter interface
- Resolved
-
MDSAL-357 RFC7952 metadata should be transported over MD-SAL
- Confirmed
- relates to
-
YANGTOOLS-369 Data Tree: improve DataContainerNode storage for empty attributes
- Resolved