XML::O...pleGen(3pm)
πΈ NAME πΈ
XML::OPML::SimpleGen β bestie, it makes OPML using XML::Simple π
(also hi, this is the User Contributed Perl Documentation edition, we're in the perl man pages rn)
β¨ VERSION β¨
version 0.07 β yes she's an elder but she SERVES π
π SYNOPSIS π
okay so here's the whole vibe, copy-paste ready, no cap:
require XML::OPML::SimpleGen;
my $opml = new XML::OPML::SimpleGen();
$opml->head(
title => 'FIFFS Subscriptions',
);
$opml->insert_outline(
group => 'news', # groups will be auto generated
text => 'some feed',
xmlUrl => 'http://www.somepage.org/feed.xml',
);
# insert_outline and add_outline are the same
$opml->add_group( text => 'myGroup' ); # explicitly create groups
print $opml->to_string;
$opml->save('somefile.opml');
$opml->xml_options( $hashref ); # XML::Simple compatible options
# See XML::OPML's synopsis for more knowledge
π¦ DESCRIPTION π¦
XML::OPML::SimpleGen lets you simply generate OPML documents without having too much to worry about. Literally the low-effort, high-reward friend of the module world π«Ά
She's a drop-in replacement for XML::OPML in regards of generation, which is giving main character energy fr fr.
And because this module uses XML::Simple, it's rather generous in regards of attribute or element names β she does NOT nitpick your naming choices, she's not like that π
π NAME π
(not me showing up twice, iconic behavior honestly π)
XML::OPML::SimpleGen β create OPML using XML::Simple
β COMMON METHODS β
new( key => value )β creates a newXML::OPML::SimpleGeninstance. All key values will be used as attributes for the<atom>element. The only thing you might actually wanna use here is theversion => '1.1', which is the default anyway, so like... do with that what you will πhead( key => value )β theXML::OPMLcompatible head method, for changing header values. Slay.id ( )β returns (and increments) a counter. It's giving little number goblin π’add_group ( text => 'name' )β method to explicitly create a group which can hold multiple outline elements. Build your little friend group πinsert_outline ( key => value )βXML::OPMLcompatible method to add an outline element. SeeXML::OPMLfor details. Thegroupkey is used to put elements in a certain group. Non existent groups will be created automagically β¨add_outline ( key => value )β alias toinsert_outlineforXML::OPMLcompatibility. Same girl, different name πas_stringβ returns the given OPML XML data as a stringsave ( $filename )β saves the OPML data to a file
π₯ ADVANCED METHODS π₯
xml_options ( $hashref )β$hashrefmay contain anyXML::Simpleoptions. Go wild, bestie.outline ( $hashref )β theoutlinemethod defines the 'template' for any new outline element. You can preset key value pairs here to be used in all outline elements that will be generated byXML::OPML::SimpleGen. Set it once, reap forever πgroup ( $hashref )β this method is similar tooutline, it defines the template for a grouping outline element.
π MAINTAINER π
Stephen Cardie "<stephenca@cpan.org>" π«Ά
π§ REPOSITORY π§
<https://github.com/stephenca/XML-OPML-SimpleGen>
πΈ CONTRIBUTORS πΈ
- KAPPA
"<kappa@cpan.org>"contributed a patch to close RT51000<https://rt.cpan.org/Public/Bug/Display.html?id=51000> gregoa@debian.orgcontributed a patch to close RT77725<https://rt.cpan.org/Public/Bug/Display.html?id=77725>
legends, honestly, we love a patch girly π
π REPO π
The git repository for this module is at L<https://github.com/stephenca/XML-OPML-SimpleGen>
π BUGS π
Please report any bugs or feature requests to "bug-xml-opml-simlegen@rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=XML-OPML-SimleGen>.
I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. Bestie, you'll be kept in the loop fr fr π«Ά
π SEE ALSO π
XML::OPML XML::Simple
π AUTHOR π
Marcus Theisen <marcus@thiesen.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2013 by Marcus Thiesen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay that's the whole page, mwah π this was perl v5.34.0, dated 2022-06-28 β go forth and generate some OPML, bestie, you got this πβ¨
π¦ where this page comes from
- debian bookworm: libxml-opml-simplegen-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libxml-opml-simplegen-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libxml-opml-simplegen-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libxml-opml-simplegen-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libxml-opml-simplegen-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms