getDocumentBytes

Returns the XML document as a serialized byte array.

NDS Version:8.5

Syntax

C++

 #include "NativeInterface.h"
 
 const unsigned char * METHOD_CALL getDocumentBytes (
    const unicode   *encoding,
    int              endian,
    int             *length);
    
 

Java

 public byte[] getDocumentBytes (
    java.lang.String   encoding)
 

Parameters

encoding
Points a standard encoding string such as "ASCII", "US-ASCII", "UTF-8", or "UTF-16".
endian
Specifies the byte-order: 0=little-endian, 1=big endian, if necessary.
length
Points to a variable which receives the length of the array, specified in bytes.

Remarks

This method returns zero if there is no data or the desired encoding is not supported. "US-ASCII", UTF-8", and "UTF-16" are always supported.