Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > XML

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-20-2009, 10:45 AM
john2078 john2078 is offline
Registered User
 
Join Date: Jul 2008
Posts: 3
Restricting the Attribute value in XML Schema

Hi All,

I have an XMl structure and i am creating XML Schema document for validating xml document.
What i want that for a particular element it should not allow same attribute name.

for example below is the XML structure :

<News>
<Regional>
<Report Region="Asia">
<Title></Title>
<Story></Story>
</Report>
</Regional>
</News>

What i want in Xml Schema how can i restrict that in the "Region" Attribute of elemet <Report> value "Asia" occure only once. It should not allow two <Report> element with the value "Asia" in Region Attribute.

Thanks for the help

-John
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
using xml schema as datasource, create a xml file file with data.. dhol .NET 0 12-27-2005 06:43 AM
Validating XML fragment against schema teclioness .NET 0 10-07-2005 08:10 AM
Data Junction Announces XML Junction 7.51 Tim Frost xml.announcements 0 04-02-2001 11:53 AM
Check out Turbo XML: Free trial download Extensibility web.announcements 0 07-20-2000 07:20 PM
Check out Turbo XML Sales xml.announcements 0 07-20-2000 07:18 PM


All times are GMT -4. The time now is 10:27 PM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.