This discussion is archived
10 Replies Latest reply: Aug 4, 2011 4:57 AM by odie_63 RSS

Remove empty lines in the CSV file using Xquery/XSLT.

user12679330 Newbie
Currently Being Moderated
Hi,
I have a CSV output file, where in it has empty lines at the end of the file, I want to remove these empty lines, Can some one pls help on this, as how to remove these empty lines by using Xquery/XSLT.


sample file:

20110706,GGG,LMM,Q,POT,O
20110708,AAA,OPP,P,MAT
20110715,BBB,TTT,O,TIN


// empty lines




Thanks..

Edited by: user12679330 on Jul 27, 2011 12:29 AM

Edited by: user12679330 on Jul 27, 2011 12:32 AM

Edited by: user12679330 on Jul 27, 2011 12:32 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points