How Can I solve It !! Plz help me http://forums.asp.net/t/1795606.aspx/1?How+Can+I+solve+It+Plz+help+me+Wed, 25 Apr 2012 01:40:38 -040017956064944816http://forums.asp.net/p/1795606/4944816.aspx/1?How+Can+I+solve+It+Plz+help+me+How Can I solve It !! Plz help me <p><em><strong>Hi Friends :)</strong></em></p> <p><em><strong>i have this problem and I can't know if its correct code or no :( </strong> </em></p> <p><em><strong>Plz i need a hlep !!</strong></em></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>1) Add a Server Runtime Environment</p> <p>2) Create a Dynamic Web Application Project.</p> <p>3) Create and Edit XML Schema and add the code given below:</p> <p>a) <b>ProductType</b> that contains the following sequence of elements and its data types.</p> <table border="1" cellspacing="0" cellpadding="0" align="left"> <tbody> <tr> <td valign="top" width="223"> <p><b>Sequence of Elements /Fields</b></p> </td> <td valign="top" width="223"> <p><b>Data Types</b></p> </td> </tr> <tr> <td valign="top" width="223"> <p><b>ProductId</b></p> </td> <td valign="top" width="223"> <p>String</p> </td> </tr> <tr> <td valign="top" width="223"> <p><b>Name</b></p> </td> <td valign="top" width="223"> <p>String</p> </td> </tr> <tr> <td valign="top" width="223"> <p><b>Description</b></p> </td> <td valign="top" width="223"> <p>String</p> </td> </tr> <tr> <td valign="top" width="223"> <p><b>Price</b></p> </td> <td valign="top" width="223"> <p>Double</p> </td> </tr> </tbody> </table> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p><strong>&lt;?xml version=&quot;1.0&quot;?&gt;</strong></p> <p><strong>&lt;element name=&quot;Product&quot; type=&quot;ProductType&quot;&gt;</strong></p> <p><strong>&lt;complexType name=&quot;ProductType&quot;&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sequence&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;element name=&quot;ProductId&quot; type=&quot;string&quot;&gt; &lt;/element&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;element name=&quot;Name&quot; type=&quot;string&quot;&gt; &lt;/element&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;element name=&quot;Description&quot; type=&quot;string&quot;&gt; &lt;/element&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;element name=&quot;Price&quot; type=&quot;Double&quot;&gt; &lt;/element&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/sequence&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/complexType&gt;</strong></p> <p><strong>&lt;/element&gt;</strong></p> <p>&nbsp;</p> <p>b) <b>CatalogType</b> that contains the following sequence of elements and its data types.</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>ProductType&nbsp; product&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; minimum=0 maximum=unbounded</b></p> <p><b>&nbsp;</b></p> <p><strong>&lt;element name=&quot;CatalogType&quot;&gt;</strong></p> <p><strong>&lt;complexType&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp; &lt;sequence&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp; &lt;element name=&quot;ProductType&quot; type=&quot;string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;undounded&quot;/&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/sequence&gt;</strong></p> <p><strong>&lt;/complexType&gt;</strong></p> <p><strong>&lt;/element&gt;</strong></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>c) <b>BooksType</b> that contains the following sequence of elements and its data types.</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>CatalogType &nbsp;&nbsp;catalog&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; minimum=0 maximum=unbounded</b></p> <p>&nbsp;</p> <p>&nbsp;</p> <p><strong>&lt;element name=&quot;BooksType&quot;&gt;</strong></p> <p><strong>&lt;complexType&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp; &lt;sequence&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp; &lt;element name=&quot;CatalogType&quot; type=&quot;string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;undounded&quot;/&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/sequence&gt;</strong></p> <p><strong>&lt;/complexType&gt;</strong></p> <p><strong>&lt;/element&gt;</strong></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p class="Question">d) Then define a root element in the XSD editor of document as:</p> <p><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b><b>BooksType AOULIB</b><b></b></p> <p class="Question">e) For the root element configure name space under properly with the following:</p> <p class="Question">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prefix: <b>AB</b></p> <p class="Question">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Target Namespace: <b>http://www.AOUBooks.com/AOUBooks</b></p> <p class="Question">4) Create XML File from an XML Schema.</p> <p class="Question">5) Create HTML File from XML file.</p> <p class="Question">&nbsp;</p> <p>&nbsp;</p> <p><strong>&lt;?mxl version=&quot;1.0&quot;?&gt;</strong></p> <p><strong>&lt;xs:schema xmlns:xs=&quot;http://www,AOUBooks.com/AOUbooks&quot;&gt;</strong></p> <p><strong>&lt;xs:element name=&quot;ProductType&quot;&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;xs:element ref=&quot;product&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;</strong></p> <p><strong>&lt;/xs:element&gt;</strong></p> <p><strong>&lt;xs:element name=&quot;CatalogType&quot;&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;xs:element ref=&quot;catalog&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;</strong></p> <p><strong>&lt;/xs:element&gt;</strong></p> <p><strong>&lt;xs:element name=&quot;ProductType&quot;&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element ref=&quot;ProductId&quot; type=&quot;xs:string&quot;/&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element ref=&quot;Name&quot; type=&quot;xs:string&quot;/&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element ref=&quot;Description&quot; type=&quot;xs:string&quot;/&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element ref=&quot;Price&quot; type=&quot;xs:string&quot;/&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:element&gt;</strong></p> <p><strong>&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;</strong></p> <p><strong>&lt;/xs:element&gt;</strong></p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> 2012-04-22T13:27:39-04:004947289http://forums.asp.net/p/1795606/4947289.aspx/1?Re+How+Can+I+solve+It+Plz+help+me+Re: How Can I solve It !! Plz help me <p><strong>PLZZZZZ HEEELP ME :(</strong></p> 2012-04-23T21:09:18-04:004947453http://forums.asp.net/p/1795606/4947453.aspx/1?Re+How+Can+I+solve+It+Plz+help+me+Re: How Can I solve It !! Plz help me <p></p> <blockquote><span class="icon-blockquote"></span> <h4>Ward-Alyasmeen</h4> <p></p> <p><strong>PLZZZZZ HEEELP ME :(</strong></p> <p></p> </blockquote> <p></p> <p>No-one can help youWe don't know what you want???</p> 2012-04-24T02:09:09-04:004949474http://forums.asp.net/p/1795606/4949474.aspx/1?Re+How+Can+I+solve+It+Plz+help+me+Re: How Can I solve It !! Plz help me <p>I need to know if this code&nbsp;right o not !!</p> <p>i worte a question and the answer !!!!!</p> <p>and i can't know if the answer right ?</p> 2012-04-24T21:14:28-04:004949616http://forums.asp.net/p/1795606/4949616.aspx/1?Re+How+Can+I+solve+It+Plz+help+me+Re: How Can I solve It !! Plz help me <p></p> <blockquote><span class="icon-blockquote"></span> <h4>Ward-Alyasmeen</h4> <p></p> <p>I need to know if this code&nbsp;right o not !!</p> <p>i worte a question and the answer !!!!!</p> <p>and i can't know if the answer right ?</p> <p></p> </blockquote> <p></p> <p>First, Plz test whether your answer is right or not, then come to here to continue your problems you've met with:-)</p> <p>If you haven't met with any problemI think yours is right!</p> 2012-04-25T01:40:38-04:00