xml parsing for source syntax