Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Voyager

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Voyager
    3. Knowledge Articles
    4. Required fields in the XML patron schema

    Required fields in the XML patron schema

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Question
    2. Answer
    3. Additional Information
    • 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
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Required encoding for Voyager API XSDs
      • Reserve items display problem
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Voyager
    2. Tags
      This page has no tags.
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved