xmlparser: diversify input sources