Categories
Archives

We are pleased to announce the release of the NewsML-G2 Generator, a simple tool to help understand the structure and layout of NewsML-G2 files.
To see how easy it can be to create a valid NewsML-G2 file, simply visit https://iptc.org/std/NewsML-G2/generator/, fill in the form and press the button labelled “Show content as NewsML-G2 2.29”.
Then the box below the form will be filled in with a valid NewsML-G2 document.
The tool demonstrates several key features of NewsML-G2:
- Adding copyright and rights information through the
<copyrightHolder/>,<copyrightNotice/>and<usageTerms/>elements - Adding news-item metadata via the
<itemMeta>container, such as<firstCreated/>,<versionCreated/>, item type (text, audio, video, graphic or composite, selected via a drop-down), publication status (usage, cancelled or withheld, selected via a drop-down) - Adding subject metadata using IPTC Media Topics, via a selection with all of the top-level categories enabled. Subjects are added using the
<subject/>construct within the<contentMeta>container. - Referring to the IPTC catalog that declares standard metadata vocabularies, using the
<catalogRef/>tag - Adding the body content using embedded NITF. In the future, we will add a radio button so users can select whether to embed the news content using NITF or XHTML, which is the other common format used by IPTC members to mark up news content.
Your test content is never saved and only exists within your browser.
The source code of the generator is available in the NewsML-G2 GitHub repository.
This is a simple 1.0 version, and only scratches the surface of the capabilities of NewsML-G2. It is based on the successful ninjs generator used to demonstrate our ninjs standard, which was launched along with ninjs 1.3 earlier this year.
In the future, we are thinking of adding features such as:
- Switch between NITF and XHTML for the content body
- Demonstrate referring to images and video files using
<remoteContent/> - Switch between using qcodes and URIs for metadata
- Demonstrate multiple language support in NewsML-G2
- Demonstrate usage of partMeta to show adding metadata to segments in files, such as audio and video
- Integrate the tool with the ninjs generator so users can switch between ninjs and NewsML-G2 with one click!
If you have any more ideas, please raise an issue on the GitHub repository, or contact us via the IPTC Contact Us form.
To learn more about NewsML-G2, the global standard used for distributing news content, see our introduction to NewsML-G2, or the NewsML-G2 Guidelines.
Categories
Archives
- December 2025
- November 2025
- October 2025
- September 2025
- August 2025
- July 2025
- June 2025
- May 2025
- April 2025
- March 2025
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- February 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- December 2019
- November 2019
- October 2019
- September 2019
- July 2019
- June 2019
- May 2019
- April 2019
- February 2019
- November 2018
- October 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- January 2018
- November 2017
- October 2017
- September 2017
- August 2017
- June 2017
- May 2017
- April 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- June 2015
- April 2015
- March 2015
- February 2015
- November 2014