XSD – Miscellaneous Data Types
XSD has a few other important data types, such as Boolean, binary, and anyURI. <xs:boolean> data type The <xs:boolean> data type is used to represent true, false, 1 (for true) or 0 (for…
XSD has a few other important data types, such as Boolean, binary, and anyURI. <xs:boolean> data type The <xs:boolean> data type is used to represent true, false, 1 (for true) or 0 (for…
Numeric data types are used to represent numbers in XML documents. <xs:decimal> data type The <xs:decimal> data type is used to represent numeric values. It supports decimal numbers up to…
Date and Time data types are used to represent date and time in the XML documents. <xs:date> data type The <xs:date> data type is used to represent date in YYYY-MM-DD…
String data types are used to represent characters in the XML documents. <xs:string> data type The <xs:string> data type can take characters, line feeds, carriage returns, and tab characters. The…
<xs:anyAttribute> element is used to extend the XSD functionality. It is used to extend a complexType element defined in one xsd by an attribute which is not defined in the…
<any> element is used to extend the XSD functionality. It is used to extend a complexType element defined in one XSD by an element which is not defined in the…
Indicators control the way how elements are to be organized in an XML document. There are seven types of indicators, falling into three broad categories. Order Indicators All − Child elements…
Complex Mix Element can have text and attribute and elements. See the following example − <student rollno = "393"> Dear <firstname>Dinkar</firstname> <lastname>Kad</lastname> <nickname>Dinkar</nickname> <marks>85</marks> </student> We can declare such Complex…
Complex Text-only Element can only have text and attribute, but no content. See the following example − <marks grade = "A" >90</student> We can declare Complex Text-only elements using the…
Complex Elements Only can only have other elements. See the following example − <student> <firstname>Vaneet</firstname> <lastname>Gupta</lastname> <nickname>Vinni</nickname> <marks>95</marks> </student> We can declare Complex element-only element using the following methods −…