Jump to content

Sequence in schema


Huma
 Share

Recommended Posts

Hello All,I am new with schema.In schema file i want to restrict that in my xml file artist either has a child fullname or combination of firstname and lastname in arbitrary order, but each just once.xml file is like this.<catalog><cd><artist>Huma Khan</artist><country>Pakistan</country></cd><cd><artist><firstname>mona</firstname><lastname>ali</lastname></artist><country>India</country></cd><cd><artist><lastname>Khan</lastname><firstname>Imran</firstname></artist><country>Pakistan</country></cd></catalog>How can i restrict this in schema file.Thanx in advanceHuma

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...