Total members 11791 |It is currently Sat Aug 17, 2019 8:02 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Define UUID in XSD schema :
To define UUID as a type in your XSD schema , you can do using pattern restriction . For example :
Code:
<element name="UUIDType"  >
                <simpleType>
                    <restriction base="ID">
                        <pattern
                            value
="[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}">
                        </pattern>
                    </restriction>
                </simpleType>
            </element>
 


UUID contain 5 sets of a hexadecimal numbers .




Author:
Mastermind
User avatar Posts: 2707
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : define UUID in your XSD schema
 UUID as key     -  
 lesson1 : <schema> Element     -  
 Define new namespaces in C++     -  
 Define template in C++     -  
 Define statement     -  
 define final class     -  
 Define enum in java     -  
 how to Define abstract class in php     -  
 Define your own exception class     -  
 define a Class with a Method     -  



Topic Tags

XSD Elements






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com