how to define Schems xml document



how to define Schems xml document..

Answer / arun

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="note">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
<xs:element name="from" type="xs:string"/>
<xs:element name="heading" type="xs:string"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>

</xs:schema>

it (xs) gives uniquness than other elements having same name..

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More XML XSLT RSS Interview Questions

Is xml hierarchical?

0 Answers  


What is ?Async? property of XML Means ?

1 Answers  


How are comments used in xml?

0 Answers  


What is xml tag library?

0 Answers  


Is xml schema better than dtd?

0 Answers  






What is Complex Element?

0 Answers  


Define xlink and xpointer?

0 Answers  


What are well-formed xml documents?

0 Answers  


What is an rss subscriber?

0 Answers  


I Read xml is used to store and transfer data can you explain it with sample code for storing and displaying data.

0 Answers  


What is the difference between wsdl and soap?

0 Answers  


What is the use of xsd in xml?

0 Answers  


Categories