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