Skip to content

mdkhaled/iptc-newsml

 
 

Repository files navigation

iptc-newsml

Build Status Apache License 2

A newsml parser for g2 and 1.2

Environment

"JDK"

Repository

This is hosted in bintray you need to add: https://dl.bintray.com/gextech/oss/ to your repositories and then the dependency:

gex.newsml:iptc-newsml:0.1.0

Usage

You can use the NewsMLTool class in order to parse NewsML v1.2 and G2 versions, it is simple enought just do it like this:

NewsML newsItem = NewsMLTool.parseV12Message(inputStream);

// Remember when using news ml 1.2 that the message
// will contain nitf, there is a util to convert your node to
// nitf

Nitf nitf = NewsMLTool.elementToNitf(element);

// or 

NewsMessage newsMessage = NewsMLTool.parseG2Message(inputStream);

GitHub, Factoids and Stats

"Forks" "Release" "Issues"

Packages

No packages published

Languages

  • Java 99.9%
  • Groovy 0.1%