Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > How to enforce a pattern on complexContent?

Thread Tools

How to enforce a pattern on complexContent?

Swaroop Kumar
Posts: n/a

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,
Reply With Quote

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
How to enforce registration ? Niclas ASP .Net 2 03-27-2006 06:06 PM
Can Thunderbird or Mozilla enforce same message rule Big Craigie Firefox 3 03-01-2005 12:43 AM
How to enforce "&"inside my queryString? Mehdi ASP .Net 2 01-29-2005 11:54 AM
Q: How to enforce singleton/get object handle between two separate processes? Jeff Java 3 07-31-2003 04:07 AM
How to enforce filename encoding? guava Java 1 07-11-2003 09:24 PM