Hi all,
I have a schema for P14 returns to the inland revenue. I am having a problem with <line> when validating the file. The <line> is part of
<xsd:element minOccurs="0" maxOccurs="1" name="Address" type="InternationalAddressStructure"/>
and for some reason the XML we have is failing the validation. I have tried everywhere and I cannot find what the valid structure, characters etc are of the InternationalAddressStructure, this is the nearest possibility
<xsd:complexType name="InternationalAddressStructure">
<xsd:sequence>
<xsd:element name="IntAddressLine" type="AddressLineType" minOccurs="2" maxOccurs="5"/>
<xsd:choice>
<xsd:sequence>
<xsd:element name="Country" type="AddressLineType"/>
<xsd:element name="InternationalPostCode" type="InternationalPostCodeType" minOccurs="0"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element name="InternationalPostCode" type="InternationalPostCodeType"/>
<xsd:element name="Country" type="AddressLineType" minOccurs="0"/>
</xsd:sequence>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
and without going through several thousand addresses removing what I think is invalid, I'm a bit stuck.
<Address>
<Line>15 SOMEWHERE AVENUE</Line>
<Line>THEREABOUTS</Line>
<Line>NEAR HERE</Line>
<Line>NEVERSHIRE</Line>
<PostCode>ZZ11 7ZZ</PostCode>
</Address>
Does anyone know what characters, field sizes/structure etc are allowable.
Thanks
Graham
I have a schema for P14 returns to the inland revenue. I am having a problem with <line> when validating the file. The <line> is part of
<xsd:element minOccurs="0" maxOccurs="1" name="Address" type="InternationalAddressStructure"/>
and for some reason the XML we have is failing the validation. I have tried everywhere and I cannot find what the valid structure, characters etc are of the InternationalAddressStructure, this is the nearest possibility
<xsd:complexType name="InternationalAddressStructure">
<xsd:sequence>
<xsd:element name="IntAddressLine" type="AddressLineType" minOccurs="2" maxOccurs="5"/>
<xsd:choice>
<xsd:sequence>
<xsd:element name="Country" type="AddressLineType"/>
<xsd:element name="InternationalPostCode" type="InternationalPostCodeType" minOccurs="0"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element name="InternationalPostCode" type="InternationalPostCodeType"/>
<xsd:element name="Country" type="AddressLineType" minOccurs="0"/>
</xsd:sequence>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
and without going through several thousand addresses removing what I think is invalid, I'm a bit stuck.
<Address>
<Line>15 SOMEWHERE AVENUE</Line>
<Line>THEREABOUTS</Line>
<Line>NEAR HERE</Line>
<Line>NEVERSHIRE</Line>
<PostCode>ZZ11 7ZZ</PostCode>
</Address>
Does anyone know what characters, field sizes/structure etc are allowable.
Thanks
Graham