Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML scheme

Reply
Thread Tools

XML scheme

 
 
Sam Sun
Guest
Posts: n/a
 
      09-15-2005
Dear all,

I want to write a XML scheme for many documents. A problem is: some
elements just exist in some documents. Can I make these elements
optional in my Scheme?

Thanks!
Sam Sun

 
Reply With Quote
 
 
 
 
zbiszko
Guest
Posts: n/a
 
      09-15-2005
I am not certain if i anderstand the question
but
you can (in xml schema) set a attribute
minOccurs="0"
in element which apear in some document in other not

 
Reply With Quote
 
 
 
 
Sam Sun
Guest
Posts: n/a
 
      09-15-2005
Thanks. That should solve the problem.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Jaxb - XML scheme validation and External API classes.. marco Java 2 09-29-2006 12:58 PM
Parsing XML scheme (xsd) to python objects Bizarro-02 Python 2 02-10-2006 10:41 AM
RSS is a failure when used for social search and tagging - is there another XML scheme that developers might use? Jake Barnes XML 2 01-03-2006 05:04 AM
[XUS] An XML URN Scheme Philippe Poulard XML 0 02-25-2005 02:53 PM
Defining elements in XML Scheme Ian Partridge XML 3 11-04-2003 05:03 PM



Advertisments