# \<item>

## \<item> <a href="#item" id="item"></a>

Each alternative expansion of a `<one-of>` block is contained in an `<item>` element.

### Attributes

<table><thead><tr><th width="176.33333333333331">Name</th><th width="177">Data type<select><option value="2992de4c3cab4e109ba0e19e19008477" label="String" color="blue"></option><option value="1c266166f6f246419769db5ddabcbc0d" label="Integer" color="blue"></option><option value="21a7e1421a7d4e8881662aaea7aacab4" label="Boolean" color="blue"></option></select></th><th>Description</th></tr></thead><tbody><tr><td>repeat</td><td><span data-option="2992de4c3cab4e109ba0e19e19008477">String</span></td><td>The number of repetitions to expect of the item. Can be either a single number or a range.</td></tr><tr><td>repeat-prob</td><td></td><td>This attribute is not supported.</td></tr><tr><td>weight</td><td></td><td>This attribute is not supported.</td></tr><tr><td>xml:lang</td><td><span data-option="2992de4c3cab4e109ba0e19e19008477">String</span></td><td>(defaults to “xml:lang” global property or the “xml:lang” attribute of the &#x3C;grammar> tag) The language identifier as defined in RFC3066.</td></tr></tbody></table>

### Notes

The repeat-prob attribute will only work if a root rule has been specified for the grammar as a whole. For examples and usage information, please refer to the [Speech Recognition Grammar Specification](http://www.w3.org/TR/2002/CR-speech-grammar-20020626/).

#### Example <a href="#example" id="example"></a>

```markup
<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <field name="animal">
      <grammar type="application/srgs+xml" root="ROOT" mode="voice">
        <rule id="ROOT">
          <one-of>
            <item>Dog</item>
            <item>Cat</item>
          </one-of>
        </rule>
      </grammar>
      <prompt>
        Say either dog or cat.
      </prompt>
      <filled>
        <prompt>
          You said <value expr="animal"/>. Goodbye.
        </prompt>
        <exit/>
      </filled>
    </field>
  </form>
</vxml>
```

The output of the above script would be:

> Computer: Say either dog or cat.\
> Human: Dog.\
> Computer: You said dog. Goodbye.

### Child Tags

[\<one-of>](/dev/voicexml/tags/one-of-tag.md), [\<ruleref>](/dev/voicexml/tags/ruleref-tag.md), [\<tag>](/dev/voicexml/tags/tag-tag.md), [\<token>](/dev/voicexml/tags/token-tag.md), [\<item>](/dev/voicexml/tags/item-tag.md)

### Parent Tags

[\<item>](/dev/voicexml/tags/item-tag.md), [\<one-of>](/dev/voicexml/tags/one-of-tag.md), [\<rule>](/dev/voicexml/tags/rule-tag.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.plumvoice.com/dev/voicexml/tags/item-tag.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
