IATI Consultations Archive

Live discussions and consultations can be found at discuss.iatistandard.org.

Proposal: Add an Schema Version Attribute to the root element

Excuse, I'm past the deadline...

To facilitate the schema version identification (specially in automatic processes of IATI XML file evaluation),I consider very important the inclusion of an attribute in the root element (iati-activities or iati-organisations) with the information of the IATI schema release used to generate it.

 

alberto amaro

Have more questions? Submit a request

4 Comments

  • 0
    Avatar
    David Carpenter

    Hi Alberto

    Sorry, I missed this post, and have only just seen it.

    There is already an @version attribute available to the iati-activities and iati-organisations root elements. Is this just something you have missed, or are you talking about something else.

    Also no worries about deadlines, these things can just go into the next round of upgrades.

    Cheers

  • 0
    Avatar
    Alberto Amaro

    Hi David.

    Thanks for your answer.

    Excuse me but I don't refer to the @version attribute.It's true that this attribute is included and it is useful in the XML files to recognize the Schema version used to create this file.

    I am asking for the Schema version. In the current IATI schemas the only info about that it is inside the documentation element:

    <xsd:documentation xml:lang="en">
          International Aid Transparency Initiative: Activity-Information Schema
          Release 1.01, 2010-11-08
    ...

    </xsd:documentation>

    But this position in a text element makes difficult the automatic identification of the schema version.

     

    There are several ways to identify a schema version. The easier is adding the atribute version to the <schema> root element.

    For example something like:

    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    version="1.01">

    cheers

    Alberto

  • 0
    Avatar
    David Carpenter

    Proposed for 1.03

    We think this is a good idea.

  • 0
    Avatar
    Bill Anderson
Please sign in to leave a comment.