ballerina/lang.xml : 0.8.0
Module Overview
The lang.xml
module corresponds to basic type xml.
Functions
[27]
'map | Applies a function to each item in an xml sequence, and returns an xml sequence of the results. |
children | Returns the children of elements in an xml value. |
concat | Concatenates xml and string values. |
createComment | Creates a new xml comment item. |
createElement | Creates a new xml element item. |
createProcessingInstruction | Creates a new xml processing instruction item. |
createText | Constructs an xml value of type Text. |
data | Returns a string with the character data of an xml value. |
elementChildren | Selects element children of an xml value. |
elements | 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 | Constructs an xml value from a string. |
get | Returns the item of an xml sequence with given index. |
getAttributes | Returns the map representing the attributes of an xml element. |
getChildren | Returns the children of an xml element. |
getContent | Returns the content of a processing instruction or comment item. |
getDescendants | Returns the descendants of an xml element. |
getName | Returns a string giving the expanded name of an xml element. |
getTarget | Returns the target part of the processing instruction. |
iterator | Returns an iterator over the xml items of an xml sequence. |
length | Returns number of xml items in an xml value. |
setChildren | Sets the children of an xml element. |
setName | Changes the name of an XML element. |
slice | Returns a subsequence of an xml value. |
strip | Strips the insignificant parts of the an xml value. |
text | Selects all the items in a sequence that are of type |
Constants
[5]
base | The expanded name of the |
lang | The expanded name of the |
space | The expanded name of the |
XML_NAMESPACE_URI | The namespace URI bound to the |
XMLNS_NAMESPACE_URI | The namespace URI bound to the |
Types
[6]
Comment | Type for singleton comments. |
Element | Type for singleton elements. |
ItemType | A type parameter that is a subtype of any singleton or empty xml sequence. |
ProcessingInstruction | Type for singleton processing instructions. |
Text | Type for zero or more text characters. |
XmlType | A type parameter that is a subtype of |