MediaWiki:Apihelp-import-extended-description

Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when sending a file for the xml parameter.