XML::O...pleGen(3pm)

πŸ“¦
version 0.07 Β· 2 versions
  • 0.07 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.07 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

🌸 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 new XML::OPML::SimpleGen instance. All key values will be used as attributes for the <atom> element. The only thing you might actually wanna use here is the version => '1.1', which is the default anyway, so like... do with that what you will πŸ™ˆ
  • head( key => value ) β€” the XML::OPML compatible 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::OPML compatible method to add an outline element. See XML::OPML for details. The group key is used to put elements in a certain group. Non existent groups will be created automagically ✨
  • add_outline ( key => value ) β€” alias to insert_outline for XML::OPML compatibility. Same girl, different name πŸŽ€
  • as_string β€” returns the given OPML XML data as a string
  • save ( $filename ) β€” saves the OPML data to a file

πŸ”₯ ADVANCED METHODS πŸ”₯

  • xml_options ( $hashref ) β€” $hashref may contain any XML::Simple options. Go wild, bestie.
  • outline ( $hashref ) β€” the outline method 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 by XML::OPML::SimpleGen. Set it once, reap forever πŸ‘‘
  • group ( $hashref ) β€” this method is similar to outline, it defines the template for a grouping outline element.

🌈 MAINTAINER 🌈

Stephen Cardie "<stephenca@cpan.org>" 🫢


🧚 REPOSITORY 🧚

<https://github.com/stephenca/XML-OPML-SimpleGen>


🌸 CONTRIBUTORS 🌸

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>


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