XML::NewsML_G2::News_Item - a news item (story)
This module acts as a base class for NewsML-G2 news items. Instead of using this class, use the most appropriate subclass, e.g. XML::NewsML_G2::News_Item_Text.
List of strings containing names of the news item's authors
List of strings containing city names where the story has been written down (as opposed to: where the story occured)
Final comment on planned updates of this story
DateTime instance, defaults to now
DateTime instance
Human readable credit line
Human readable content description string
Natural language information indicating the place and time that the content was created
Deprecated - use derived_froms and add_derived_from instead!
List of XML::NewsML_G2::Link instances
List of XML::NewsML_G2::Desk instances
Defaults to "usable".
Defaults to "1"
additional text for specifying details on the embargo
List of XML::NewsML_G2::Genre instances
"identifier that is guaranteed to be globally unique for all time and independent of location". Defaults to a UUID
List of strings to signal additional information
language of the story, required. E.g. "en", "de", ...
Hash mapping qcodes to XML::NewsML_G2::Location instances
Hash mapping qcodes to XML::NewsML_G2::Media_Topic instances
Hash mapping generated uids to XML::NewsML_G2::Concept instances
Human-readable alternative ID of the story
Editorial notes
List of XML::NewsML_G2::Organisation instances
An XML::LibXML::Node instance containing the content (quite likely p elements, hence the name) of the story - to be put into the XHTML body. Use the add_paragraph method to add text unless you want more control of the output.
p
add_paragraph
Numeric message priority, defaults to 5
List of XML::NewsML_G2::Product instances
List of XML::NewsML_G2::Provider instances
Hash mapping of hrefs to remote object (e.g. XML::NewsML_G2::Picture) instances
Deprecated - use see_alsos and add_see_also instead!
XML::NewsML_G2::Service instance
String containing the slugline
Slugline separator, defaults to "/"
XML::NewsML_G2::ElectionDistrict instance
List of strings containing story source names
List of XML::NewsML_G2::StoryType instances
Subtitle string
A short overview of all, or at least the most important, facets of the content of the item
A free-text expression of the person or organisation that created the content
A short description intended to attract the user to view the full content
Title string
List of XML::NewsML_G2::Topic instances
String containing human readable usage terms
Add a string to the authors
Add a string to the cities
Add a new "derived from" link - either a string, or a XML::NewsML_G2::Link instance
Add a XML::NewsML_G2::Desk instance
Add a XML::NewsML_G2::Genre instance
Add a string to the indicators
Add a new XML::NewsML_G2::Location instance
Add a new XML::NewsML_G2::MediaTopic instance
Add a new XML::NewsML_G2::Concept instance
Add a new XML::NewsML_G2::Organisation instance
Takes a string to be added to the paragraphs Node instance as a p element. To have more control over the created XHTML output, directly set the paragraphs attribute with a Node instance you created by yourself.
paragraphs
Add a new XML::NewsML_G2::Product instance
Add a new remote instance (e.g. XML::NewsML_G2::Picture) with a given href
Add a new "see also" link - either a string, or a XML::NewsML_G2::Link instance
Add a string to the sources
Add a new XML::NewsML_G2::Topic instance
Philipp Gortan <philipp.gortan@apa.at>
<philipp.gortan@apa.at>
Copyright (c) 2013-2015, APA-IT. All rights reserved.
See XML::NewsML_G2 for the license.
To install XML::NewsML_G2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::NewsML_G2
CPAN shell
perl -MCPAN -e shell install XML::NewsML_G2
For more information on module installation, please visit the detailed CPAN module installation guide.