Config:...or::XML(3)
πΈ NAME πΈ
Config::Generator::XML β Config::Generator XML support π
hey bestie, welcome to the Config:...or::XML(3) page from the User Contributed Perl Documentation π«Ά this is the whole vibe, no cap.
β¨ DESCRIPTION β¨
okay so this module eases XML content generation by giving you several functions that generate XML abstractions β xml_blank(), xml_comment(), xml_element(), xml_parse() and xml_wrap() β plus one function that converts those abstractions into strings: xml_string() π
β οΈ Note: only a subset of XML is supported. This means that this module is not suited for HTML generation.
π FUNCTIONS π
This module provides the following functions (none of them being exported by default) π
xml_blank()β return an XML abstraction representing a blank line π©·xml_comment(STRING)β return an XML abstraction representing a comment π¬xml_element(NAME[, ATTR[, BODY]])β return an XML abstraction representing an element:ATTR: defines the attributes as a hash or array referenceBODY: defines the body as a string or list of XML abstractions
xml_parse(STRING)β parse the given string (that must contain well formed XML) and return the list of XML abstractions it contains πxml_string(ELEMENT[, OPTIONS])β return the string representation of the given XML abstraction; supported options are:"indent"β how many spaces to prepend to each line (default:0)"line"β maximum line length (longer lines will be wrapped)"sort"β which elements to have their attributes sorted differently, as a hash: name => sorting function"split"β which elements to split (i.e. to have their attributes split on different lines), as a hash: name => boolean
xml_wrap(NAMES, ELEMENTS)β wrap the given XML elements into nested elements of the given names (with no attributes) π
π AUTHOR π
Lionel Cons Lionel Cons <http://cern.ch/lionel.cons> π
Copyright (C) CERN 2013-2016
signing off with perl v5.32.1 and the date 2019-07-26 β mwah πβ¨
π¦ where this page comes from
- epel 9: perl-Config-Generator 1.0-10.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms