Jump to content

text and element in schema


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 post
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 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...
×
×
  • Create New...