xmleam/builder
Types
pub type Option {
Opt(label: String, value: String)
}
Constructors
-
Opt(label: String, value: String)
Functions
pub fn basic_tag(
tag_name: String,
contents: List(String),
) -> Result(String, XmlError)
Deprecated: Please Migrate to xml_builder module
This is a basic tag, ie. name and the contents
Ex. builder.basic_tag(“pubDate”, “12 Mar 2024”) to
pub fn option_content_tag(
tag_name: String,
options: List(Option),
contents: List(String),
) -> Result(String, XmlError)
Deprecated: Please Migrate to xml_builder module
This is a tag with options and content
Ex. opts_cont_tag(“enclosure”, [opts(“url”, “https://example.com”)],
“IDK why you would use this”)
->
pub fn option_tag(
tag_name: String,
options: List(Option),
) -> Result(String, XmlError)
Deprecated: Please Migrate to xml_builder module
pub fn xml(
version: String,
encoding: String,
document_parts: List(String),
) -> Result(String, XmlError)
Deprecated: Please Migrate to xml_builder module
This is the header tag REQUIRED by all valid XML documents Usage: xml(version (1.0), encoding (UTF-8), document: List(String) -> [basic_tag(…), basic_tag(…)])