title: how to output first row as column qualifier names
body: <p>I am able to process two nodes from an xml. And I am getting the output below:</p>
  
  <pre><code>bin/hadoop fs -text /user/root/t-output1/part-r-00000
      name:ST17925 currentgrade 1.02
      name:ST17926 currentgrade 3.0
      name:ST17927 currentgrade 3.0
  </code></pre>
  
  <p>but I need to have an output like:</p>
  
  <pre><code>studentid curentgrade
  ST17925 1.02
  ST17926 3.00
  ST17927 3.00
  </code></pre>
  
  <p>How can I achieve this?</p>
  
  <p>My complete source code: <a href="https://github.com/studhadoop/xml/blob/master/XmlParser11.java" rel="nofollow">https://github.com/studhadoop/xml/blob/master/XmlParser11.java</a></p>
  
  <p><strong>EDIT: Solution</strong></p>
  
  <pre><code>protected void setup(Context context) throws IOException, InterruptedException {
      context.write(new Text("studentid"), new Text("currentgrade"));            
    }
  </code></pre>