473,387 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

XSD Pattern Validation

Hi,

Anyone know how to specify a <XS:Pattern> so as to include a set of
allowable characters? For example, I would like to allow all characters
except QUOTE, PERCENT and AMPERSAND? Is that even possible to specify it in
the XSD Schema?

Thanks
CJ
Nov 12 '05 #1
1 3181


Chin Jin Phua wrote:

Anyone know how to specify a <XS:Pattern> so as to include a set of
allowable characters? For example, I would like to allow all characters
except QUOTE, PERCENT and AMPERSAND? Is that even possible to specify it in
the XSD Schema?


The regular expression pattern language is defined here:
<http://www.w3.org/TR/xmlschema-2/#regexs>
it allows 'negative character groups' with [^list-of characters-here] e.g.
[^'%&]
of course inside of an XML document you need to escape the ampersand e.g.
[^'%&amp;]

--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: gsv2com | last post by:
One of my weaknesses has always been pattern matching. Something I definitely need to study up on and maybe you guys can give me a pointer here. I'm looking to remove all of this code and just...
5
by: pythoncurious | last post by:
Hi python experts In C++ I can do something like this: class Base { public: void f() { this->f_(); } private: virtual void f_() = 0; };
0
by: ashoksharma2621 | last post by:
I'm using Xerces-J-2.6.2 it barks at me with org.xml.sax.SAXParseException: InvalidRegex: Pattern value '?(\d+|\d+(\.\d+)?%)(,\s*?(\d+|\d+(\.\d+)?%))*' is not a valid regular expression. The...
6
by: Bill44077 | last post by:
Hi, I am new to the MVP pattern and one of the main reasons that we are going this route is because we are doing Scrum with 30 day sprints - so we have a continually morphing design. We are...
5
Dormilich
by: Dormilich | last post by:
Hi guys, I'm want to write a class for validating xml files, but I'm not sure about the pattern the class shall have. what I have so far: a class that's doing XSLT transformation: class...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.