Constructors
constructor
Parameters
-
input: DynamicValue<string>
-
options: X2jOptionsOptional Optional
-
name: string Optional
Properties
__variant__
__variant__: string = "XMLValue"
options
options: X2jOptionsOptional
Methods
getValue
Returns Promise<any>
Static fromJSON
- fromJSON(json: object): any
Parameters
-
json: object
-
input: any
-
Optional name?: string
-
Optional options?: X2jOptionsOptional
Returns any
A DynamicValue reducer returning the input XML parsed
example
new XMLValue(new TextValue("<root>test</root>")).onValue(parsed=> parsed.root === "test" //true )