The "NP" in your desired output is taken from which line of your input?
In reply to Re: create an xml file from column file by hdb in thread create an xml file from column file by lakssreedhar