What is a Document parser?
Edited
Document parser is a small custom-tailored program that extracts data from your file and converts it into a format Xero understands, applying all the custom rules you may want.
A document parser can contain almost any rule you can imagine. For example: adding a custom margin to amounts, deducting commission fees from payments, splitting lines into multiple invoice line items, to name a few.