wood burning stoves 2.0*
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
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
 
Similar Threads
Issue in CMR entity bean
Query relating to transforming XML using XSL
deployment exception with compound primary key in jboss3.0 getUniqueChild exception
Newbie XSLT Question
CMR configuration confusion