title: Yang : How to convert yang schema to XML
body: <p>I have a Yang file, i want to send data using yang schema in an xml format how do i do that.</p>
  
  <p>Suppose i have yang file like below</p>
  
  <pre><code>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;
              }
          }
  
      }
  }
  </code></pre>
  
  <p>I want to send data in xml format as per yang schema, how do serialize or convert yang to xml.</p>