The IPTC’s flagship news exchange standard, NewsML-G2, is now updated to version 2.31. The change was approved at the IPTC Standards Committee Meeting at the IPTC Autumn Meeting 2022.

NewsML-G2 Generator v
The NewsML-G2 Generator was also updated to create version 2.31-compliant files.

The full NewsML-G2 XML Schema, NewsML-G2 Guidelines document and NewsML-G2 specification document have all now been updated.

The only change (Change Request CR00215) is that we now allow the hasInstrument element on any concept or assert. Previously we required hasInstrument to be declared on organisations only, but we realised that not every financial instrument related to an organisation: for example an exchange-traded fund, or the instrument for a commodity, do not directly relate to a specific company.

Interestingly, hasInstrument elements in <assert>s did appear to work in previous versions, but that is because of NewsML-G2’s use of the xs:any construct which allows asserts to be augmented with arbitrary elements. No validation took place on elements which were added in this way.

Examples

Example 1: hasInstrument as a child of concept

<concept>
  <conceptId qcode="P:18040196349" />
  <type qcode="cptType:97"/>
  <name>Invesco Capital Appreciation Fund;R6</name>
  <hasInstrument symbol="OPTFX.O" type="symType:RIC" symbolsrc="symSrc:RFT"/>
  <hasInstrument symbol="US00141G7328" symbolsrc="symSrc:ISO" type="symType:ISIN"/>
</concept>

Example 2: hasInstrument as a child of assert

<assert qcode="P:18040196349">
  <name>Invesco Capital Appreciation Fund;R6</name>
  <type qcode="cptType:97"/>
  <hasInstrument symbol="OPTFX.O" type="symType:RIC" symbolsrc="symSrc:RFT"/>
  <hasInstrument symbol="US00141G7328" symbolsrc="symSrc:ISO" type="symType:ISIN"/>
</assert>

Example 3: hasInstrument within  assert/organisationDetails

This usage still works, but is now deprecated.

<assert qcode="P:18040196349">
  <name>Invesco Capital Appreciation Fund;R6</name>
  <type qcode="cptType:97"/>
  <organisationDetails>
    <hasInstrument symbol="OPTFX.O" type="symType:RIC" symbolsrc="symSrc:RFT"/>
    <hasInstrument symbol="US00141G7328" symbolsrc="symSrc:ISO" type="symType:ISIN"/>
    <rtr:anyOtherElement>
      Other elements in other namespaces allowed here due to xs:any other
    </rtr:anyOtherElement>
  </organisationDetails>
</assert>

XML Schema documentation of version 2.31 version is available on GitHub and at http://iptc.org/std/NewsML-G2/2.31/specification/XML-Schema-Doc-Power/.

NewsML-G2 Generator updated

The NewsML-G2 Generator has been updated to use version 2.31. There are no substantive changes but the version number of generated files has been updated to 2.31.

Thanks to Dave Compton of Refinitiv (an LSE Group Company) and the NewsML-G2 Working Group for their work on the update, and to Kelvin Holland on his work on the documentation.

To follow our work on GitHub, please see the IPTC NewsML-G2 GitHub repository.

The full NewsML-G2 change log showing the Change Requests included in each new version is available at the dev.iptc.org site.