Config:...or::XML(3)

πŸ“¦ version 1.0, in epel 9

🌸 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 reference
    • BODY: 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