aspose file tools*
The moose likes XML and Related Technologies and the fly likes Want to remove single quotes from CSV to XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Want to remove single quotes from CSV to XML" Watch "Want to remove single quotes from CSV to XML" New topic
Author

Want to remove single quotes from CSV to XML

Ahamed Ali
Greenhorn

Joined: Apr 21, 2005
Posts: 19
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

Joined: Jul 13, 2001
Posts: 3150
will java.lang.String replace(,) help?
[ June 04, 2005: Message edited by: Balaji Loganathan ]

Spritle Software Blogs
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Also have a look at this http://sourceforge.net/projects/extremecomp/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Want to remove single quotes from CSV to XML