How to enforce a pattern on complexContent?

Discussion in 'XML' started by Swaroop Kumar, Aug 19, 2003.

  1. Hi:

    Here's a problem that's been vexing me for a couple of days now. I
    need to represent a structure in which an element can either:

    1) contain text conforming to a certain pattern (regex) OR
    2) contain an element that contains text conforming to the same
    pattern mentioned above.

    My first question is, can this be done in schemas? If so, can you give
    me some tips/pointers on how I would accomplish this? I've tried it
    using various methods, but none of them work. I'd really appreciate it
    if somebody would respond with their thoughts on this.

    Thanx in advance,
    Swaroop
    Swaroop Kumar, Aug 19, 2003
    #1
    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. Mehdi
    Replies:
    2
    Views:
    391
    Mehdi
    Jan 29, 2005
  2. Niclas

    How to enforce registration ?

    Niclas, Mar 27, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    319
    Steve C. Orr [MVP, MCSD]
    Mar 27, 2006
  3. guava
    Replies:
    1
    Views:
    468
    Gordon Beaton
    Jul 11, 2003
  4. Jeff
    Replies:
    3
    Views:
    645
    Roedy Green
    Jul 31, 2003
  5. David Norman
    Replies:
    3
    Views:
    724
    Peter Flynn
    Aug 4, 2004
Loading...

Share This Page