# Examples

## Team Example

The following JSON represents a team with two employees:

    {
     team:{
      employee:[
       {
        name:'Joe',
        surname:'Bloggs'
       },
       {
         name:'Jane',
         surname:'Doe'
       }
      ]
     }
    }

Here is the same representation in XML:

    <team>
     <employee>
      <name>Joe</name>
      <surname>Bloggs</surname>
     </employee>
     <employee>
      <name>Jane</name>
      <surname>Doe</surname>
     </employee>
    </team>

## Team Example

The following JSON represents a menu with three menu items:

    {"menu": {
     "id": "file",
     "value": "File",
     "popup": {
      "menuitem": [
       {"value": "New", "onclick":
        "CreateNewDoc()"},
       {"value": "Open", "onclick":
        "OpenDoc()"},
       {"value": "Close", "onclick":
        "CloseDoc()"}
      ]
     }
    }

Here is the same representation in XML:

    <menu id="file" value="File">
     <popup>
      <menuitem value="New"
       onclick="CreateNewDoc()" />
      <menuitem value="Open"
       onclick="OpenDoc()" />
      <menuitem value="Close"
       onclick="CloseDoc()" />
     </popup>
    </menu>