Provides functionality for parsing XML formatted strings and serializing XML documents.
Node | Description |
---|
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. |
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 |
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 |
Serializes the specified XML document into a string representation.
Param | Type | DefaultValue | Description |
---|---|---|---|
oXMLDocument | string |
the XML document object to be serialized as string |