BizTalk Utilities Xselerator XSLT IDE


Forum main page

Most active member

Login page
Register
Log out

Search page

View our event calendar
Add general event such as an upcoming software release or conference
View all birthdays

Public image gallery
Upload your images in your profile

Profile editing page
Subscription list page
Address book page

Member list page
View the most active member
User groups listing

Private message page

xml validation multiple elements

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Ask XML questions here] >> Java XML Discussions >> xml validation multiple elements Page: [1]
Login
Message << Older Topic   Newer Topic >>
xml validation multiple elements - 30 May 2007   
sachinask

 

Posts: 3
Score: 0
Joined: 28 May 2007
Status: offline
in following scenario xml schema has to generate


<elementAll type=”one">
                       <element-A>
                                               <!-- value -->
                       </element-A>
                       <element-B>
                                               <!-- value -->
                       </element-B>
<element-C>
                                               <!-- value -->
                       </element-C>

</elementAll>

if attribute type=”one” then element-C need to be exists.

if attribute type=”two” then element-C should not exists.


is it possible to write schema for above scenario.

help is appriciated

thanks
Post #: 1
RE: xml validation multiple elements - 30 May 2007   
jkmyoung

 

Posts: 259
Score: 6
Joined: 14 September 2004
Status: offline
Using xml schema, no; That would be a cooccurrence constraint.
It may be possible with other schema validation, eg schematron.

< Message edited by jkmyoung -- 30 May 2007 >

(in reply to sachinask)
Post #: 2
Page:   [1]
All Forums >> [Ask XML questions here] >> Java XML Discussions >> xml validation multiple elements Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



Email TopXML

Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.078