Enlist different data types avaialable in XSD?

Spotloan
Spotloan

Posted On: Feb 22, 2018

 

There are two data types available in XSD.

They are simpleType and complexType.

  1. simpleType - These are the built-in datatype present in XSD. There are many types available in ti. They are xsd:integer, xsd:float, xsd:double, xsd:decimal, xsd:string, xsd:binary, xsd:date, xsd:datetime, xsd:boolean. The xsd:integer and xsd:string has many different types present like, long, short, byte, unsignedByte, unsignedInt, etc for xsd:integer and token, language, Name, ID, time, normalizesString, etc for xsd:string.
  2. complexType - This definition contains a set of element declarations, references, and attribute declarations. You have to define the element and the attribute of the complex type. It can either be named type or anonymous type.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    XSD Interview Questions

    What is XSD?

    XSD (XML Schema Definition) is a language definition that defines how to describe the elements in the Extensible Markup Language (XML). This definition is a recommendation of the World Wide Web Consor...

    XSD Interview Questions

    Explain the benifits of using XSD?

    The advantages of using XSD over other schema languages are,XSD is extensible. That is, You can use XSD to derive new elements from the existing elements. XSD doesn’t require intermediate p...

    XSD Interview Questions

    How attribute is different from a element in XSD?

    Element in XSD is nothing but an XML element such as opening tag, content, closing tag, etc. XSD Elements are the building blocks of your XML document. Elements are defined by their occurrence. An ele...