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

What are the advantages of using xslt?

0 Answers  


What is the difference between xml and xlsx?

0 Answers  


What are the condtions that apply in case of xsl:stylesheet element?

0 Answers  


how to transform an XML file into HTML using XSL transformation (XSLT)?

0 Answers  


How do I find my youtube rss feed?

0 Answers  


Where can I declare an xml namespace?

0 Answers  


What is the extension of xslt file?

0 Answers  


What is valid xml document? What a well formed xml document?

2 Answers   Astadia,


what is DTD?

1 Answers  


Why was xml created?

0 Answers  


Is xsl and xslt the same?

0 Answers  


Can you open xml in excel?

0 Answers  


Categories