vlvassilev / yuma123

The yuma123 repository
Other
24 stars 28 forks source link

XML Formation issue using Candid DB #109

Closed sathishkchillout closed 3 years ago

sathishkchillout commented 3 years ago

we are forming XML by using candidate db. But seems order is Alphabetic order. Because of that Dependent object configuration came later.

Is there way to retain user defined order

vlvassilev commented 3 years ago

The XML encoding of data is done according to the YANG module (not Alphabetic). In general implementations are required to order data only for RPCs and actions ( https://tools.ietf.org/html/rfc7950#section-7.5.7 )

You can control the order by editing the YANG module for example.

sathishkchillout commented 3 years ago

What order candid Db is stored ?

vlvassilev commented 3 years ago

The order specified in the YANG module.