How do I create an xml schema?



How do I create an xml schema?..

Answer / Bachchu Pandit

To create an XML Schema, you can use the W3C XML Schema Definition Language (XSD). The process involves defining data types for elements and attributes, creating complex types through composition, defining constraints on element values, and setting up namespaces. You can create a schema file (.xsd) with appropriate tags and save it.nFor example,n<xsd:schema>n<xsd:element name="employee" type="EmployeeType"/>n<xsd:complexType name="EmployeeType">n<xsd:sequence>n<xsd:element name="firstname" type="xsd:string"/>n<xsd:element name="lastname" type="xsd:string"/>n</xsd:sequence>n</xsd:complexType>n</xsd:schema>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More XML XSLT RSS Interview Questions

How do I run an xml file?

1 Answers  


what is the significance of namespaces in xml?

1 Answers  


What does an xml document actually look like (inside)?

1 Answers  


Which is the best tool one should learn i.e the tool having demand in the market for XSL?

1 Answers  


Which is a language for finding information in an xml document?

1 Answers  


How do I make an xml file?

1 Answers  


How do I save as an xml file?

1 Answers  


What are the types of XML Parsers?

1 Answers  


Why xml is a markup language?

1 Answers  


Is xsd xml?

1 Answers  


Is html xml?

1 Answers  


What is xml vs html?

1 Answers  


Categories