G.2 XML Elements
Prev | G WADL JSON Representation | Next

## G.2 XML Elements

The JSON encoding of WADL XML elements depends on whether the element is:

- a "doc" element

- an element that is unique within a particular parent element (e.g., "request")

- an element that can be repeated within a particular parent element (e.g., "param")

### G.2.1 Doc Elements

A "doc" element is represented as an array of objects, where each object may contain:

- a "@xml:lang" string

- a "@title" string

- a "value" string

Example:

    "doc": [
    		{
    			"@xml:lang": "en",
    			"value": "Granular cell tumor"
    		},
    		{
    			"@xml:lang": "ja",
    			"value": "顆粒細胞腫"
    		},
    		{
    			"@xml:lang": "fr",
    			"value": "Tumeur à cellules granuleuses"
    		}
    ]

Prev | Up | Next
G WADL JSON Representation | Home | G.2.2 Unique Elements