made attrs keys symbols instead of strings, extracted some common attrs out into xmldoc class