code: def parseMemory(buffer, size):
      
      ret = libxml2mod.xmlParseMemory(buffer, size)
      if ret is None:raise parserError('xmlParseMemory() failed')
      return xmlDoc(_obj=ret)
docs: parse an XML in-memory block and build a tree.