Huma Posted March 14, 2006 Share Posted March 14, 2006 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 More sharing options...
steve_marjoribanks Posted March 14, 2006 Share Posted March 14, 2006 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<{POST_SNAPBACK}> 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now