Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
0 Points
3 Posts
Apr 22, 2012 01:27 PM|LINK
Hi Friends :)
i have this problem and I can't know if its correct code or no :(
Plz i need a hlep !!
1) Add a Server Runtime Environment
2) Create a Dynamic Web Application Project.
3) Create and Edit XML Schema and add the code given below:
a) ProductType that contains the following sequence of elements and its data types.
Sequence of Elements /Fields
Data Types
ProductId
String
Name
Description
Price
Double
<?xml version="1.0"?>
<element name="Product" type="ProductType">
<complexType name="ProductType">
<sequence>
<element name="ProductId" type="string"> </element>
<element name="Name" type="string"> </element>
<element name="Description" type="string"> </element>
<element name="Price" type="Double"> </element>
</sequence>
</complexType>
</element>
b) CatalogType that contains the following sequence of elements and its data types.
ProductType product minimum=0 maximum=unbounded
<element name="CatalogType">
<complexType>
<element name="ProductType" type="string" minOccurs="0" maxOccurs="undounded"/>
c) BooksType that contains the following sequence of elements and its data types.
CatalogType catalog minimum=0 maximum=unbounded
<element name="BooksType">
<element name="CatalogType" type="string" minOccurs="0" maxOccurs="undounded"/>
d) Then define a root element in the XSD editor of document as:
BooksType AOULIB
e) For the root element configure name space under properly with the following:
Prefix: AB
Target Namespace: http://www.AOUBooks.com/AOUBooks
4) Create XML File from an XML Schema.
5) Create HTML File from XML file.
<?mxl version="1.0"?>
<xs:schema xmlns:xs="http://www,AOUBooks.com/AOUbooks">
<xs:element name="ProductType">
<xs:complexType>
<xs:sequence>
<xs:element ref="product" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CatalogType">
<xs:element ref="catalog" minOccurs="0" maxOccurs="unbounded"/>
<xs:element>
<xs:element ref="ProductId" type="xs:string"/>
<xs:element ref="Name" type="xs:string"/>
<xs:element ref="Description" type="xs:string"/>
<xs:element ref="Price" type="xs:string"/>
Ward-Alyasme...
0 Points
3 Posts
How Can I solve It !! Plz help me
Apr 22, 2012 01:27 PM|LINK
Hi Friends :)
i have this problem and I can't know if its correct code or no :(
Plz i need a hlep !!
1) Add a Server Runtime Environment
2) Create a Dynamic Web Application Project.
3) Create and Edit XML Schema and add the code given below:
a) ProductType that contains the following sequence of elements and its data types.
Sequence of Elements /Fields
Data Types
ProductId
String
Name
String
Description
String
Price
Double
<?xml version="1.0"?>
<element name="Product" type="ProductType">
<complexType name="ProductType">
<sequence>
<element name="ProductId" type="string"> </element>
<element name="Name" type="string"> </element>
<element name="Description" type="string"> </element>
<element name="Price" type="Double"> </element>
</sequence>
</complexType>
</element>
b) CatalogType that contains the following sequence of elements and its data types.
ProductType product minimum=0 maximum=unbounded
<element name="CatalogType">
<complexType>
<sequence>
<element name="ProductType" type="string" minOccurs="0" maxOccurs="undounded"/>
</sequence>
</complexType>
</element>
c) BooksType that contains the following sequence of elements and its data types.
CatalogType catalog minimum=0 maximum=unbounded
<element name="BooksType">
<complexType>
<sequence>
<element name="CatalogType" type="string" minOccurs="0" maxOccurs="undounded"/>
</sequence>
</complexType>
</element>
d) Then define a root element in the XSD editor of document as:
BooksType AOULIB
e) For the root element configure name space under properly with the following:
Prefix: AB
Target Namespace: http://www.AOUBooks.com/AOUBooks
4) Create XML File from an XML Schema.
5) Create HTML File from XML file.
<?mxl version="1.0"?>
<xs:schema xmlns:xs="http://www,AOUBooks.com/AOUbooks">
<xs:element name="ProductType">
<xs:complexType>
<xs:sequence>
<xs:element ref="product" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CatalogType">
<xs:complexType>
<xs:sequence>
<xs:element ref="catalog" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProductType">
<xs:complexType>
<xs:element>
<xs:element ref="ProductId" type="xs:string"/>
<xs:element ref="Name" type="xs:string"/>
<xs:element ref="Description" type="xs:string"/>
<xs:element ref="Price" type="xs:string"/>
</xs:element>
</xs:complexType>
</xs:element>