XML scheme

Discussion in 'XML' started by Sam Sun, Sep 15, 2005.

  1. Sam Sun

    Sam Sun Guest

    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
    Sam Sun, Sep 15, 2005
    #1
    1. Advertising

  2. Sam Sun

    zbiszko Guest

    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
    zbiszko, Sep 15, 2005
    #2
    1. Advertising

  3. Sam Sun

    Sam Sun Guest

    Thanks. That should solve the problem.
    Sam Sun, Sep 15, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ian Partridge

    Defining elements in XML Scheme

    Ian Partridge, Oct 31, 2003, in forum: XML
    Replies:
    3
    Views:
    382
    Mark Preston
    Nov 4, 2003
  2. Philippe Poulard

    [XUS] An XML URN Scheme

    Philippe Poulard, Feb 25, 2005, in forum: XML
    Replies:
    0
    Views:
    527
    Philippe Poulard
    Feb 25, 2005
  3. Jake Barnes
    Replies:
    2
    Views:
    335
    Jake Barnes
    Jan 3, 2006
  4. Bizarro-02
    Replies:
    2
    Views:
    663
    Bizarro-02
    Feb 10, 2006
  5. marco
    Replies:
    2
    Views:
    442
    marco
    Sep 29, 2006
Loading...

Share This Page