Hi,
I have encountered a situation that I think is not covered by RFC 7950. My 
specific use-case was as follows.

model:

container TOP {
  leaf L {
    type empty;
  }
  choice A {
    mandatory true;
    container C;
  }
}

data:

<TOP>
  <L/>
  <C/>
</TOP>

Parsing was successful, but printing these data back to XML produced:

<TOP>
  <L/>
</TOP>

and parsing this correctly failed with missing mandatory choice. According to 
section 7.5.7 [1], I think the C container could be omitted but the whole 
situation does not seem correct. Thank you for any input.

Regards,
Michal

[1] https://tools.ietf.org/html/rfc7950#section-7.5.7

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to