title: Parse large XML file over FTP
body: <p>I need to parse a large XML file (>1 GB) which is located on a FTP server. I have a FTP stream aquired by ftp_connect(). (I use this stream for other FTP-related actions)</p>
  
  <p>I know XMLReader is preferred for large XML files, but it will only accept a URI. So I assume a stream wrapper will be required. And the only ftp-function I know of which will allow me to retrieve only a small part of the file is ftp_nb_fget() in combination with ftp_nb_continue().</p>
  
  <p>However, I do not know how I should put all of this together to make sure that a minimum amount of memory is used. </p>