A newsml parser for g2 and 1.2
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
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);