XML::NewsML_G2::News_Item - a news item (story)
my $ni = XML::NewsML_G2::News_Item->new (guid => $guid, title => "Story title", slugline => "the/slugline", language => 'de', provider => $provider_instance, service => $service_instance, ); $ni->add_genre($genre1, $genre2); $ni->add_source('APA'); $ni->add_paragraph('blah blah blah');
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
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
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
Free-format string
XML::NewsML_G2::Service instance
String containing the slugline
Slugline separator, defaults to "/"
List of strings containing story source names
Subtitle string
Title string
List of XML::NewsML_G2::Topic instances
Add a string to the authors
Add a string to the cities
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::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 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, 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.