XmlDocument_newFromBytes

Creates a new XML document instance from an array of bytes

Syntax

C++

 #include "InterfaceFactory.h"
 
 DIRXML_EXPORT 
 XmlDocument * IFAPI XmlDocument_newFromBytes ( 
    const unsigned char   *bytes,
    int                   length,
    const unicode         *encoding,
    int                    endian);
 
 

Parameters

bytes
(IN) Points to an array of bytes with a serialized XML document.
length
(IN) Specifies the length of the byte array.
encoding
(IN) Points to a NULL-terminated unicode string that specifies the character encoding of the byte array.
endian
(IN) Specifies the byte-order of the encoding in the array: zero for Intel and non-zero for Motorola.

Remarks

The returned instance must be destroyed by calling the XmlDocument_destroy method.

The XmlDocument instance does not take ownership of the passed byte array and so it must be freed after the XmlDocument instance is destroyed.