Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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.

  • No labels