Custom Datatypes in RELAX NG Using Java

Another RELAX NG goodie written by the XML Bible geek, Elliotte Rusty Harold: RELAX NG with custom datatype libraries: Define new types with Java technology.

To give you an idea of what this article is about, several RELAX NG schema validators (like Sun's Multischema Validator, or MSV) let you plug in custom datatype validation using simple Java constructs. This capability can be used to go (way) beyond traditional document validation, even to the extent of verifying that a piece of XML data fulfills requirements above and beyond its syntax. For example, it would be possible to verify that a document contains a valid credit card number (and maybe even post a fund reserve) with an online clearinghouse during the validation phase, rather then relying on the application layer to do this sort of validation at a later stage. Such semantic validation is extraordinarily powerful.

Comments:

Post a Comment:
Comments are closed for this entry.
About

toddfast

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today