Required fields in the XML patron schema
- Product: Voyager
- Relevant for Installation Type: Multi-Tenant Direct, Dedicated-Direct, Local, TotalCare
Question
How to tell what fields are required in the XML Patron Schema (https://developers.exlibrisgroup.com/wp-content/uploads/Voyager/PatronSchema.xsd)?
Answer
The key to this is the value for “minOccurs”. By default, minOccurs = 1, if not explicitly stated. So, any element without a minOccurs = 0 is required.
Any element with minOccurs = 0 is therefor optional.
Additional Information
Example code from the XML Patron Schema
This (institutionID) is optional:
<xs:element name="institutionID" nillable="true" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:minLength value="1"/> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> </xs:element>
This (barcode) is not optional:
<xs:element name="barcode"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:minLength value="1"/> <xs:maxLength value="25"/> </xs:restriction> </xs:simpleType> </xs:element>
- Article last edited: 07-Apr-2020