Jump to content
Sign in to follow this  

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.



Share this post

Link to post
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
Sign in to follow this