Jump to content

Sequence in schema

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...