Simplify component xml generation using sed

BUG=none

Review URL: https://codereview.appspot.com/7445048