You can add nillable="true"
to the XSD:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="AppStatusDetails">
<xs:complexType>
<xs:sequence>
<xs:element name="Patronid" type="xs:string" />
<xs:element name="PatronidType" type="xs:unsignedByte" />
<xs:element name="Birthdate" type="xs:unsignedInt" />
<xs:element name="Tickettype" type="xs:unsignedByte" nillable="true"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
And then xsi:nil="true"
to Tickettype
in the document instance:
<?xml version="1.0" encoding="utf-8" ?>
<AppStatusDetails xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Patronid>G5032788W</Patronid>
<PatronidType>1</PatronidType>
<Birthdate>19870716</Birthdate>
<Tickettype xsi:nil="true"></Tickettype>
</AppStatusDetails>