If you want to consume an entire file as a single event then you will need to use a multiline filter. There is an example here. If you do not use a multiline filter then each line of the file will be a separate event.
The event will contain the contents of the file (either a single line, or the output of the multiline) in a field called "message", so that should be the source for you xml filter.