Catman..._simple(3pm)

πŸ“¦
version 0.17 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Catman..._simple πŸ’–

okay so bestie, welcome to the Catman..._simple page β€” that's the title, and it lives in section 3pm of the User Contributed Perl Documentation, so you know it's a Perl module situation. let's get into it 🫢


✨ NAME ✨

Catmandu::Fix::xml_simple β€” parse/convert XML to key-value form

like. it takes XML. and it makes it a nice lil key-value thing. that's the whole vibe. 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

xml_read(xml)
xml_simple(xml)

xml_read(xml, simple=1)  # equivalent

so you got two ways to flex here, and they're literally the same thing β€” xml_read(xml, simple=1) is just xml_simple(xml) wearing a different outfit. no cap. πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

This Catmandu::Fix transforms MicroXML or parses XML strings to key-value form with XML::Struct.

that's it. that's the whole job. it's giving glow-up for your XML ✨ β€” MicroXML gets transformed, XML strings get parsed, and everything lands in key-value form, courtesy of XML::Struct. iconic behavior, honestly.


πŸŽ€ OPTIONS πŸŽ€

See Catmandu::Fix::xml_read for parsing options.

bestie, no options live here πŸ’€ the parsing options are all over in Catmandu::Fix::xml_read β€” go check that page, this one's just pointing you there. iykyk. 🧚

and that's the whole page, short and sweet like a lil strawberry πŸ“ β€” this was perl v5.36.0, dated 2022-09-15, so yeah, a tiny bit vintage but still slaying. mwah πŸ’–πŸ’…

πŸ“¦ where this page comes from