xml_document

Represents an XML document.

Target type

Signature

1xml_document

Represents an XML document.

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

Examples

Basic call

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