File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Inhertiting complex type in XML Schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Inhertiting complex type in XML Schema" Watch "Inhertiting complex type in XML Schema" New topic
Author

Inhertiting complex type in XML Schema

Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
Hi,
Just started reading RMH book for learning web services.
Was going thru some sample to create xml document and xml schema. Struck at the following.
I have xml schema as below.

with this above schema, i have to define address tag in my xml document
as

I am not able to define address tag elements in the order of line1, line2, city, zip, state, country.
How should I change my xml schema so that I can declare elements in free form. I tried using 'all' instead of sequence but it is not allowing in inheriting of xml schema..
I read from RMH book (Page 48) that "Only single elements may be used in an all group; it can't include other groupings like sequence or all"
Please help me, how can I define my schema to allow flexibility of any order of address tag?
Thanks in advance.

[ August 09, 2006: Message edited by: Rizwan Mohammad ]
[ August 09, 2006: Message edited by: Rizwan Mohammad ]

Rizwan
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inhertiting complex type in XML Schema
 
Similar Threads
XML Schema Problem
Doubt on XML Schema validity
Inhertiting complex type in XML Schema
Confused in XML Schema.
element all