Phone API Reference - Classes - DOMParser - parseFromString
parseFromString
Description
Parse a string into a standard DOM Document.
Basic Example:
var parser = new DOMParser(); var document = parser.parseFromString('<config><test attr="value" /></config>'); |
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
xml | Yes | string | String containing valid XML. |