Module : lang.xml

Version : 0.8.0

Module Overview

This module provides lang library operations on xml values defined by the language specification 2020R1.

Functions

children
I

Returns the children of elements in an xml value.

concat
I

Concatenates xml and string values.

createComment
I

Constructs an xml sequence consisting of only a comment item.

createElement
I

Constructs an xml sequence consisting of only a new element item.

createProcessingInstruction
I

Constructs an xml sequence consisting of only a processing instruction item.

elementChildren
I

Selects element children of an xml value

elements
I

Selects elements from an xml value.

filter

Selects the items from an xml sequence for which a function returns true.

forEach

Applies a function to each item in an xml sequence.

fromString
I

Constructs an xml value from a string.

get
I

Returns the item of x with index i.

getAttributes
I

Returns the map representing the attributes of elem.

getChildren
I

Returns the children of elem.

getContent
I

Returns the content of a text or processing instruction or comment item.

getName
I

Returns a string giving the expanded name of elem.

getTarget
I

Returns the target part of the processing instruction.

iterator
I

Returns an iterator over the xml items of x

length
I

Returns number of xml items in x.

map

Applies a function to each item in an xml sequence, and returns an xml sequence of the results.

setChildren
I

Sets the children of elem to children.

setName
I

Change the name of element elem to xName.

slice
I

Returns a subsequence of an xml value.

strip
I

Strips the insignificant parts of the an xml value.

Constants

XML_NAMESPACE_URI

The namespace URI bound to the xml prefix.

XMLNS_NAMESPACE_URI

The namespace URI bound to the xmlns prefix.

space

The expanded name of the xml:space attribute.

lang

The expanded name of the xml:lang attribute.

base

The expanded name of the xml:base attribute.