IPv6 addresses are easier to describe using a simple regex
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.java2s.com" xmlns="http://www.java2s.com"
elementFormDefault="qualified">
<xs:simpleType name="ipv6_Address">
<xs:restriction base="xs:string">
<xs:pattern value="([A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}" />
</xs:restriction>
</xs:simpleType>
</xs:schema>
Related examples in the same category