XML Input implemented for FLOW

Not 100% tested, but looks like it is working pretty well.