Methods
-
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.
-
Parse an XML string to an XML Document.
Name Type Description xml
string XML.
Returns:
Document.
Type Definitions
-
NodeStackItem{Object}
-
When using
module:ol/xml~makeChildAppender
ormodule:ol/xml~makeSimpleNodeFactory
, the topobjectStack
item needs to have this structure.Properties:
Name Type Description node
Node -
-