In XML we can specify the frequency of an element by using the symbols :

2015

In XML we can specify the frequency of an element by using the symbols :

  1. A.

    +*!

  2. B.

    #*!

  3. C.

    +*?

  4. D.

    -*?

Attempted by 142 students.

Show answer & explanation

Correct answer: C

Correct answer: +*?

These three symbols are occurrence indicators used in XML DTD content models to specify how many times an element can appear.

  • ? : zero or one occurrence

  • * : zero or more occurrences

  • + : one or more occurrences

Example: using these in a content model looks like (item)? for optional, (item)* for zero or more, and (item)+ for one or more occurrences.

Explore the full course: Tpsc Assistant Technical Officer