I am trying to create an XML file based on an XSD file,The schema definition found in the following link
Schema-http://xmlgw.companieshouse.gov.uk/v1-0/schema/forms/CompanyIncorporation-v2-6.xsd
And my XML is as follows,
<?xml version="1.0" encoding="UTF-8"?>
<CompanyIncorporation xmlns="http://ift.tt/1oDa3aN" xmlns:xsi="http://ift.tt/ra1lAU" xsi:schemaLocation="http://ift.tt/1oDa3aN http://ift.tt/Uf6pZ7">
<CompanyType>BYSHR</CompanyType>
<CountryOfIncorporation>EW</CountryOfIncorporation>
<RegisteredOfficeAddress>
<Premise>38</Premise>
<Street>Vaughan Road</Street>
<Thoroughfare>Pentwyn</Thoroughfare>
<PostTown>Harrow</PostTown>
<Country>GB-ENG</Country>
<Postcode>HA1 4EE</Postcode>
</RegisteredOfficeAddress>
<Articles>BESPOKE</Articles>
<RestrictedArticles>false</RestrictedArticles>
<SameDay>false</SameDay>
<SameName>false</SameName>
<NameAuthorisation>false</NameAuthorisation>
</CompanyIncorporation>
But it will create an error when i validating it,
Not valid.
Error - Line 15, 18: org.xml.sax.SAXParseException; lineNumber: 15; columnNumber: 18;
cvc-complex-type.2.4.a: Invalid content was found starting with element 'SameDay'. One
of '{"http://ift.tt/1oDa3aN":Appointment}' is expected.
No comments:
Post a Comment