XSD – String
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…
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 −…
Complex Empty Element can only have attribute, but no content. See the following example − <student rollno = "393" /> We can declare Complex Empty elements using the following methods…
Complex Element is an XML element which can contain other elements and/or attributes. We can create a complex element in two ways − Define a complex type and then create…
Restriction element is used to define accepted values that an XML element can take. Syntax <xs:restriction base = "element-type"> restrictions </xs:restriction> baseType of the Element on which restriction is to…