Jump to content
Sign in to follow this  
raj87

xml validation with xsd

Recommended Posts

Hi i am new to XSD, need some help

 

i have a XML as

 

<Feature>

<Mobile value="true" group="Samsung_India,Nokia_Finland,Sony_Japan"/>

</Feature>

 

i am validating Mobile tag without "group" attribute as

 

<xsd:element name="Feature">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="Mobile" type="Boolean"/>

<xsd:sequence>

<xsd:complexType>

 

My query is to also validate "group" in Mobile tag which has String values with underscore and seperated by commas.

and group values are fixed. Want to validate group values and it should validate pattern of values.

if someboby give invalid values then it should not validate.

 

Thanks

Share this post


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.

Guest
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.

Loading...
Sign in to follow this  

×
×
  • Create New...