Get a document element from index
the document buffer
length of the buffer
index to
the returned element array
ErrorCode
Get a document element from index