Okay.. The actual output I need is two columns ID and XML and two rows with ID Values 123, 456 and XML values should be the whole text between the tags table. If this cannot be achieved let me know how to extract data between the tags table and write it to a file. I can work out from there.
I haven't tried anything worthy. I am trying few sed and awk commands which I found here like sed -n '/<TABLE>/,/<\/TABLE>/p' test.xml but I am getting the whole data. I am newbie to UNIX shell scripting.
A prerequisite is that the id tags are always in the right order within that table, otherwise you need to use something a little bit more complicated..