Skip to content

parse

Creates a new Xml instance from the specified XML string.

1
myXml.parse(xml: string):Xml

Parameters

string xml
    The XML string to parse.

Returns

A new Xml instance representing the parsed XML.

See Also

  • Xml## Remarks White spaces are preserved during XML parsing.

Usage:

1
2
var myXml = $Xml.Parse('<doc><Customer><Name>hello</Name></Customer></doc>');
var name = myXml.Evaluate('//Customer/Name')

See Also