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
|
|
Users viewing this topic: none
|
|
Login | |
|
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
|
|
|
|
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 >
|
|
|
|
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
|
|
|