parse an XML in-memory document and build a tree.

def readMemory(buffer, size, URL, encoding, options):
    """parse an XML in-memory document and build a tree. """
    ret = libxml2mod.xmlReadMemory(buffer, size, URL, encoding, options)
    if ret is None:raise treeError('xmlReadMemory() failed')
    return xmlDoc(_obj=ret)