You are here: Reference > JavaScript > client-side > xml handling > methods > parseFromBuffer (DOMParser)

parseFromBuffer method (DOMParser)

Browser support:
Creates an XMLDocument object from the specified byte array.

Syntax:

object.parseFromBuffer (buffer, bufferLength, mimeType);
You can find the related objects in the Supported by objects section below.

Parameters:

buffer
Required. Specifies the byte array to parse.
bufferLength
Required. Integer that specifies the length of the array, in bytes.
mimeType
Required. String that specifies the content type of the data.
One of the following values:
text/xml
Input format is XML.
application/xml
Input format is XML.
application/xhtml+xml
Input format is XML.

Return value:

Returns the created XMLDocument object.

Supported by objects:

Related pages:

User Contributed Comments

Post Content

Post Content