Methods
-
module:ol/xml.getAllTextContent(node, normalizeWhitespace){string}
xml.js, line 59 -
import {getAllTextContent} from 'ol/xml';Recursively grab all text content of child nodes into a single string.
Name Type Description nodeNode Node.
normalizeWhitespaceboolean Normalize whitespace: remove all line breaks.
Returns:
All text content.
-
module:ol/xml.parse(xml){Document}
xml.js, line 117 -
import {parse} from 'ol/xml';Parse an XML string to an XML Document.
Name Type Description xmlstring XML.
Returns:
Document.
Type Definitions
-
NodeStackItem{Object}
-
When using
module:ol/xml~makeChildAppenderormodule:ol/xml~makeSimpleNodeFactory, the topobjectStackitem needs to have this structure.Properties:
Name Type Description nodeNode -
Parser()
xml.js, line 16 -
-
Serializer()
xml.js, line 21 -
OpenLayers