Adding basic XML encoder