Methods
-
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.
-
import {parse} from 'ol/xml';Parse an XML string to an XML Document.
Name Type Description xmlstring XML.
Returns:
Document.
-
import {registerDocument} from 'ol/xml';Register a Document to use when creating nodes for XML serializations. Can be used to inject a Document where there is no globally available implementation.
Name Type Description documentDocument A Document.
-
import {registerXMLSerializer} from 'ol/xml';Register a XMLSerializer. Can be used to inject a XMLSerializer where there is no globally available implementation.
Name Type Description xmlSerializerXMLSerializer A XMLSerializer.
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 -
-
OpenLayers