XML::G...Builder(3pm)

πŸ“¦
version 0.46alpha Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– XML::G...Builder β€” the PerlSAX handler that builds you an XML::Grove πŸ’–

okay bestie, welcome to the manual page for XML::G...Builder(3pm), straight out of the User Contributed Perl Documentation collection. it's short, it's sweet, it's iconic. let's go πŸ¦‹


✨ NAME ✨

XML::Grove::Builder β€” a PerlSAX handler for building an XML::Grove. that's it, that's the whole job description, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

like, here's the whole vibe in code form:

use PerlSAXParser;
use XML::Grove::Builder;

$builder = XML::Grove::Builder->new();
$parser = PerlSAXParser->new( Handler => $builder );

$grove = $parser->parse( Source => [SOURCE] );

literally just five lines and you have a grove. we love a low-effort high-reward situation 🫢


πŸ‘‘ DESCRIPTION πŸ‘‘

XML::Grove::Builder is a PerlSAX handler for building an XML::Grove. no cap, that's the entire premise and it's a good one.

so the way you use her is: you make a brand new instance of XML::Grove::Builder, and then you hand that instance over as the Handler for a PerlSAX parser. that's the whole setup. then β€” and this is the part that hits different β€” calling "parse()" on that PerlSAX parser will return the grove that got built from that parse. like, it just gives it to you. main character behaviour honestly ✨

πŸ’€ reminder that this is the entire documented behaviour. no extra secret flags, no hidden modes. she does one thing and she slays at it.

πŸŽ€ AUTHOR πŸŽ€

Ken MacLeod, ken@bitsko.slc.ut.us β€” thank you for your service, king πŸ‘‘


🌈 SEE ALSO 🌈


and that's the page, bestie!! go build some groves, you've got this πŸ’œ

this lil doc came to you courtesy of perl v5.36.0, dated 2022-11-29 β€” and it's still serving looks under the XML::G...Builder(3pm) title. mwah, bye πŸŽ€βœ¨

πŸ“¦ where this page comes from