Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 25, 2012 01:40 AM by TimoYang
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"/>
Apr 23, 2012 09:09 PM|LINK
PLZZZZZ HEEELP ME :(
Contributor
3732 Points
1275 Posts
Apr 24, 2012 02:09 AM|LINK
Ward-Alyasmeen PLZZZZZ HEEELP ME :(
No-one can help you……We don't know what you want……???
Apr 24, 2012 09:14 PM|LINK
I need to know if this code right o not !!
i worte a question and the answer !!!!!
and i can't know if the answer right ?
Apr 25, 2012 01:40 AM|LINK
Ward-Alyasmeen I need to know if this code right o not !! i worte a question and the answer !!!!! and i can't know if the answer right ?
First, Plz test whether your answer is right or not, then come to here to continue your problems you've met with……:-)
If you haven't met with any problem,I think yours is right!
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>
Ward-Alyasme...
0 Points
3 Posts
Re: How Can I solve It !! Plz help me
Apr 23, 2012 09:09 PM|LINK
PLZZZZZ HEEELP ME :(
TimoYang
Contributor
3732 Points
1275 Posts
Re: How Can I solve It !! Plz help me
Apr 24, 2012 02:09 AM|LINK
No-one can help you……We don't know what you want……???
Ward-Alyasme...
0 Points
3 Posts
Re: How Can I solve It !! Plz help me
Apr 24, 2012 09:14 PM|LINK
I need to know if this code right o not !!
i worte a question and the answer !!!!!
and i can't know if the answer right ?
TimoYang
Contributor
3732 Points
1275 Posts
Re: How Can I solve It !! Plz help me
Apr 25, 2012 01:40 AM|LINK
First, Plz test whether your answer is right or not, then come to here to continue your problems you've met with……:-)
If you haven't met with any problem,I think yours is right!