Companion object to CDATA.
Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements.
The names of the product elements.
Attributes
- Inherited from:
- Mirror
The name of the type.
The name of the type.
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Constructs a new CDATA instance with the provided content and trimmed prefix and postfix strings.
Constructs a new CDATA instance with the provided content and trimmed prefix and postfix strings.
Value parameters
- post
-
the postfix string, typically surrounding whitespace or newlines.
- pre
-
the prefix string, typically surrounding whitespace or newlines.
- x
-
the string content of the CDATA node.
Attributes
- Returns
-
a new instance of the CDATA case class with trimmed prefix and postfix.
Constructs a new CDATA instance with the provided content and default empty prefix and postfix strings.
Constructs a new CDATA instance with the provided content and default empty prefix and postfix strings.
Value parameters
- x
-
the string content of the CDATA node.
Attributes
- Returns
-
a new instance of the CDATA case class with default empty prefix and postfix.
Extracts a CDATA instance from a given XML Node, if the node contains a matching CDATA structure.
Extracts a CDATA instance from a given XML Node, if the node contains a matching CDATA structure.
Value parameters
- node
-
the XML node to be analyzed for CDATA content.
Attributes
- Returns
-
an
Optioncontaining the CDATA instance if the node matches the CDATA pattern; otherwise,None.
Constructs a new CDATA instance with the provided content and default prefix and postfix strings set to newlines ("\n").
Constructs a new CDATA instance with the provided content and default prefix and postfix strings set to newlines ("\n").
Value parameters
- x
-
the string content of the CDATA node.
Attributes
- Returns
-
a new instance of the CDATA case class with default prefix and postfix strings set to newlines.