2.56 Literal

The Literal element specifies a literal node in a query expression tree.

Exactly one Literal.Value or Literal.Values element MUST be specified as a child of the Literal element.

The following are the parent and child elements of the Literal element.

Parent elements

Expression

Child elements

Literal.DataType

Literal.Value

Literal.Values

The following is the XML Schema definition of the Literal element.          

 <xsd:complexType name="LiteralType">
   <xsd:all>
     <xsd:element name="DataType" type="LiteralDataTypeEnum" />
     <xsd:element name="Value" type="xsd:string" minOccurs="0" />
     <xsd:element name="Values" minOccurs="0">
       <xsd:complexType>
         <xsd:sequence>
           <xsd:element name="Value" type="xsd:string" maxOccurs="unbounded" />
         </xsd:sequence>
       </xsd:complexType>
     </xsd:element>
   </xsd:all>
 </xsd:complexType>