Line parser now almost works, besides xml declaration