U
UndoMiel
Hi,
I am looking for a way to validate IP addresses using XML Schemas. The
following is what i used:
<xsd:simpleType name="IPType">
<xsd:restriction base="xsd:string">
<xsdattern value="(([1-9]?[0-9] | 1[0-9][0-9] | 2[0-4][0-9] |
25[0-5])\.){3}
([1-9]?[0-9] | 1[0-9][0-9] |
2[0-4][0-9] | 25[0-5])"/>
</xsd:restriction>
</xsd:simpleType>
I think the regular expression is correct, however an XML document with a
valid IP address doesn't pass the validation test.
Can anyone tell me what I can do to solve this?
Many Thanks
I am looking for a way to validate IP addresses using XML Schemas. The
following is what i used:
<xsd:simpleType name="IPType">
<xsd:restriction base="xsd:string">
<xsdattern value="(([1-9]?[0-9] | 1[0-9][0-9] | 2[0-4][0-9] |
25[0-5])\.){3}
([1-9]?[0-9] | 1[0-9][0-9] |
2[0-4][0-9] | 25[0-5])"/>
</xsd:restriction>
</xsd:simpleType>
I think the regular expression is correct, however an XML document with a
valid IP address doesn't pass the validation test.
Can anyone tell me what I can do to solve this?
Many Thanks