Jump to content

xml validation with xsd

Recommended Posts

Hi i am new to XSD, need some help


i have a XML as



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



i am validating Mobile tag without "group" attribute as


<xsd:element name="Feature">



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




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.



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