Sunday, December 3, 2017

Writing Basic XML Codes

*** Example 1 ***

<producer>
       <producer>
              <name>Thet</name>
              <age>30</age>
       </producer>

       <producer>
             <name>Naing</name>
             <age>32</age>
       </producer>
  
       <producer>
             <name>Win</name>
             <age>33</age>
       </producer>
</producer>


*** Example 2 ***

<producer>
       <producer>
               <food>
                     <foodname>banana</foodname>
                     <foodprice>100 kyats</foodprice>
               </food>
       </producer>

       <producer>
                <food>
                      <foodname>apple</foodname>
                      <footprice>200 kyats</foodprice>
                </food>
       </producer>

       <producer>
                <food>
                      <foodname>orange</foodname>
                      <foodprice>150 kyats</foodprice>
                </food>
       </producer>
</producer>

No comments:

Post a Comment