Parse¶
Parses the specified string as an XML node and returns the document element as an Xml instance.
1 | |
Parameters¶
string xml
XML string to parse.
Returns¶
An Xml instance representing the parsed XML.
Remarks¶
Whitespace is preserved during XML parsing. The returned node is not attached to the current document. XPath expressions on it are relative to the parsed document element.
Examples¶
Parse an XML string and read values¶
1 2 3 | |
Parse XML and copy it into the pool data¶
1 2 | |