Zoom

  • Increase
  • Decrease

Current Zoom: 100%

XML & XML Schema

As with the Enrolment and Graduand Report files will be submitted in XML format. However, the system for Annual Statistical Returns will use a schema (.xsd) instead of a dtd for validation. Schema perform a similar function to dtd - they define the document structure and list valid elements. They are saved into the folder in which your xml file is stored and your xml file is validated against them.
The schemas provided for the Annual Statistical Returns will:

  • Check that your xml file is "well formed"  i.e. check xml syntax -  that correct tags are used (tags are case sensitive), that each tag used has a closing tag (other than empty tags) and that tags are used in the correct order.
  • For many fields the schema will validate the data contained within tags e.g. check codes used are valid, numeric fields are within range specified, data does not exceed the field size specified, data is of the is of the correct type etc. 

For info on XML see w3.org.
For XML tutorial see w3schools.
For XML editors see xmlspy.com.
 
File Declarations and Schema (.xsd) file download
The schema files can be downloaded at the bottom of this page. Also available are sample Programme, Course and Survey XML files.
The first line in every XML file uploaded should be <?xml version="1.0"?>
 
Programme

  • Please rename the Programme XML Schema as prog.xsd which will enable XML Spy or any other validating XML editor to pick up the file
  • Programme data must be enclosed by the <srs> tag and the opening tag must be <srs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="prog.xsd">
  • Each programme must be enclosed by the <prog> tag
  • Fields are delimited by the use of tags such as <retYr>2005</retYr> <instCd>XX</instCd> for return year and institute code.
  • Nested tags are used to delimit faculty information i.e. faculty title and code must be enclosed within a <faculty> tag which in turn must be enclosed by the <faculties> tag. e.g. faculty title = commerce, faculty code = CM would be:
    <faculties><faculty> <title>commerce</title> <code>CM</code></faculty></faculies>
    This allows the submission of multi-faculty programmes. For a programme run by faculties of commerce and law, the example would be:
    <faculties><faculty> <title>commerce</title> <code>CM</code></faculty><faculty><title>law</title> <code>LW</code></faculty></faculties>

Course

  • Please rename the Course XML Schema as course.xsd which will enable XML Spy or any other validating XML editor to pick up the file
  • Course data must be enclosed by the <srs> tag and the opening tag must be <srs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:noNamespaceSchemaLocation="course.xsd">
  • Each course must be enclosed by the <course> tag
  • Fields are delimited using tags such as <retYr>, <instCd> and <courseCd>

Survey

  • Please rename the Survey XML Schema as survey.xsd which will enable XML Spy or any other validating XML editor to pick up the file
  • Survey data must be enclosed by the <srs> tag and the opening tag must be <srs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="survey.xsd">
  • Fields are delimited using tags such as <retYr>, <instCd> and <stuID>.

Access 

  • Please rename the Access Survey XML Schema as access.xsd which will enable XML Spy or any other validating XML editor to pick up the file Fields are delimited using tags such as <retYr>, <instCd> and <stuID>.

Information Reference

 To save a file to your hard disk, right click your mouse on the link and select 'save target as'

 

 

SOCIAL & COMMUNITY
hea facebook