Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Want to remove single quotes from CSV to XML

 
Ahamed Ali
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

I am developing a task, which involved converting CSV to XML. Everything is working fine, but I am not able to remove single quotes from CSV to produce output in XML. I am using SAX and Java.

The CSV is look like:

'First','carol','Last','Simon',' ' and so on.

The part of the out put I got:

<?xml version="1.0" encoding="UTF-8"?>
<learnerinformation>
<relationship>
<source>'First'</source>
<id>'carol'</id>
</relationship>
</learnerinformation>

I want to the remove the quotes using Java, pleae some one could helpme out.

Thanks in advanced


Ahamed
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
will java.lang.String replace(,) help?
[ June 04, 2005: Message edited by: Balaji Loganathan ]
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also have a look at this http://sourceforge.net/projects/extremecomp/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic