Search This Blog

Friday, August 31, 2007

Read News Industry Text Format (NITF) Files with PHP

XML allows document authors to describe content using their own tags
and markup, and this flexibility has made it the platform of choice
for specialized industry-specific data-sharing applications. One such
example is the News Industry Text Format (NITF), an XML-based
vocabulary that allows publishers in the news industry to define the
content and structure of news articles and thus provide a framework
for easier sharing of news articles. NITF is an open, public standard
defined and supported by the International Press Telecommunications
Council (IPTC), and is widely used by some of the world's largest news
agencies. For PHP developers working with this format. a 'XML_NITF'
a package is available from the PHP Extension and Application Repository
(PEAR). The XML_NITF package provides an API to extract various
elements of a news article from an NITF-formatted file, and then use
this information in a PHP application. The XML_NITF package also
includes methods to access article metadata -- the 'docdata' and
'pubdata' elements within the document 'head' -- as well as any media
associated with the article. As such, XML_NITF provides a robust,
easy-to-use widget for any PHP/NITF application.

No comments: