Module: ol/xml
This documentation is for OpenLayers v
5.3.2. The
latest is v
.
Methods
-
module:ol/xml.getAllTextContent(node, normalizeWhitespace){string}
xml.js, line 59
-
Recursively grab all text content of child nodes into a single string.
Name |
Type |
Description |
node |
Node
|
Node. |
normalizeWhitespace |
boolean
|
Normalize whitespace: remove all line
breaks. |
Returns:
All text content.
-
module:ol/xml.parse(xml){Document}
xml.js, line 117
-
Parse an XML string to an XML Document.
Name |
Type |
Description |
xml |
string
|
XML. |
Returns:
Document.
Type Definitions
-
-
When using module:ol/xml~makeChildAppender
or
module:ol/xml~makeSimpleNodeFactory
, the top objectStack
item needs
to have this structure.
Properties:
Name |
Type |
Description |
node
|
Node
|
|
-
-
-
Serializer()
xml.js, line 21
-