Was searching for a document on how to convert yang model to xml, came across this document.
Following is what I have done hope others find it useful.
To view/convert to a tree format use the following
pyang -f tree ietf-interfaces.yang
this is docum...