Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Inhertiting complex type in XML Schema

 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!