namespace sap/ui/util/XMLHelper

Visiblity: public
Available since: N/A
Module: sap/ui/util/XMLHelper
Application Component:

Provides functionality for parsing XML formatted strings and serializing XML documents.


Nodes Overview

Node Description

Methods Overview

Method Description
module:sap/ui/util/XMLHelper.getParseError

Extracts parse error information from the specified document (if any).

If an error was found the returned object has the following error information parameters: errorCode, url, reason, srcText, line, linepos, filepos

module:sap/ui/util/XMLHelper.parse

Parses the specified XML formatted string text using native parsing function of the browser and returns a valid XML document. If an error occurred during parsing a parse error xobject is returned as property (parseError) of the returned XML document object. The parse error object has the following error information parameters: errorCode, url, reason, srcText, line, linepos, filepos

module:sap/ui/util/XMLHelper.serialize

Serializes the specified XML document into a string representation.

module:sap/ui/util/XMLHelper.getParseError

Extracts parse error information from the specified document (if any).

If an error was found the returned object has the following error information parameters: errorCode, url, reason, srcText, line, linepos, filepos

Param Type DefaultValue Description
oDocument string

the parsed XML document

module:sap/ui/util/XMLHelper.parse

Parses the specified XML formatted string text using native parsing function of the browser and returns a valid XML document. If an error occurred during parsing a parse error xobject is returned as property (parseError) of the returned XML document object. The parse error object has the following error information parameters: errorCode, url, reason, srcText, line, linepos, filepos

Param Type DefaultValue Description
sXMLText string

the XML data as string

module:sap/ui/util/XMLHelper.serialize

Serializes the specified XML document into a string representation.

Param Type DefaultValue Description
oXMLDocument string

the XML document object to be serialized as string