Skip to content

parse

Creates a new Xml instance from the specified xml string.

1
myXml.parse(xml: string):Xml

Parameters

string xml

See Also

  • Xmll**
        XML string to parse.

Remarks

While parsing the xml white spaces is preserved.

Usage

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

See Also