This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Want to remove single quotes from CSV to XML
 
It's not a secret anymore!