Hello Below is the code snippet i am using in Xml parsing against XSD

Parsing is showing succesfull even if i give TransactionRef more than
30 character in xml.
Any suggestion what should be wrong.What will be the root cause

<xsd:element name="TransactionRef">
<xsd:annotation>
        <xsd:documentation>Transaction reference for a given transaction.
Note:
        Same reference is sent back in response </xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
        <xsd:restriction base="xsd:token">
                <xsd:minLength value="1"/>
                <xsd:maxLength value="30"/>
        </xsd:restriction>
        </xsd:simpleType>
</xsd:element>

Reply via email to