I have a Yang file, i want to send data using yang schema in an xml format how do i do that.
Suppose i have yang file like below
module jtest {
namespace "jtest";
prefix jtest;
container jtest {
container mycontainer1 {
leaf myleaf1 {
type string;
}
}
container mycontainer2 {
container innercontainer {
leaf myleaf2 {
type string;
}
}
leaf myleaf3 {
type string;
}
}
container mycontainer3 {
leaf myleaf1 {
type string;
}
}
}
}
I want to send data in xml format as per yang schema, how do serialize or convert yang to xml.