xml

Creates or parses an XML document.

Target type

Signature

1xml(text::string) or xml()

Creates or parses an XML document.

xml constructs or identifies a LaiRu value type. xml works with structured document or media data. Keep parsing, transformation, and output steps separate enough that each step can be checked on its own.

Parameters

text
Required value of type string. Supply text positionally unless the signature shows a keyword form.

Examples

Basic call

1xml('<root/>')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.