Jump to content

text and element in schema


Huma
 Share

Recommended Posts

Helloi am new with schema and facing many problems in it.Consider an a piece of xml file below<artist>Nusrat <lastname>Ali</lastname></artist>I want to restrict "Nusrat" in XML schema but not getting how?can anybody help me out?Best RegardsHuma

Link to comment
Share on other sites

Helloi am new with schema and facing many problems in it.Consider an a piece of xml file below<artist>Nusrat <lastname>Ali</lastname></artist>I want to restrict "Nusrat" in XML schema but not getting how?can anybody help me out?Best RegardsHuma

I think you should strongly consider re-structuring your XML so it looks like this:<artist> <firstName>Nusrat</firstName> <lastName>Ali</lastName></artist>Using mixed content elements is not recommended for data storage of this kind.
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...