Phaser API Documentation

  Version: 

Member of: Phaser.DOM

<static> ParseXML(data)

Description:

Takes the given data string and parses it as XML. First tries to use the window.DOMParser and reverts to the Microsoft.XMLDOM if that fails. The parsed XML object is returned, or null if there was an error while parsing the data.

Parameters:

name type description
data string

The XML source stored in a string.

Returns:
Description:

The parsed XML data, or null if the data could not be parsed.

Type:
  • DOMParser
  • ActiveXObject
Since: 3.0.0
Source: src/dom/ParseXML.js (Line 7)