Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Java code to convert text files to xml

Reply
Thread Tools

Java code to convert text files to xml

 
 
mave
Guest
Posts: n/a
 
      04-16-2004
Is anyone aware of a Java program preferably w/ source code to convert
files in text format to xml format?


Pls. let me know if you are aware of such a program.
 
Reply With Quote
 
 
 
 
Steve W. Jackson
Guest
Posts: n/a
 
      04-16-2004
In article <(E-Mail Removed) >,
http://www.velocityreviews.com/forums/(E-Mail Removed) (mave) wrote:

>:Is anyone aware of a Java program preferably w/ source code to convert
>:files in text format to xml format?
>:
>:
>ls. let me know if you are aware of such a program.


Not likely, since the details of the text format and the desired XML
document structure are up to you. You just need to write something that
reads the text file, since you know its structure, and builds the XML
document the way you want it from the data, then writes it.

= Steve =
--
Steve W. Jackson
Montgomery, Alabama
 
Reply With Quote
 
 
 
 
lquast@univ.llu.edu
Guest
Posts: n/a
 
      04-18-2004
"Steve W. Jackson" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)-berlin.de>...
> In article <(E-Mail Removed) >,
> (E-Mail Removed) (mave) wrote:
>
> >:Is anyone aware of a Java program preferably w/ source code to convert
> >:files in text format to xml format?
> >:
> >:
> >ls. let me know if you are aware of such a program.

>
> Not likely, since the details of the text format and the desired XML
> document structure are up to you. You just need to write something that
> reads the text file, since you know its structure, and builds the XML
> document the way you want it from the data, then writes it.
>
> = Steve =


Hi Steve,

Have you written something to build XML documents as you describe?

L
 
Reply With Quote
 
Steve W. Jackson
Guest
Posts: n/a
 
      04-19-2004
In article <(E-Mail Removed)> ,
(E-Mail Removed) wrote:

>:"Steve W. Jackson" <(E-Mail Removed)> wrote in message
>:news:<(E-Mail Removed)-berlin.de>...
>:> In article <(E-Mail Removed) >,
>:> (E-Mail Removed) (mave) wrote:
>:>
>:> >:Is anyone aware of a Java program preferably w/ source code to convert
>:> >:files in text format to xml format?
>:> >:
>:> >:
>:> >ls. let me know if you are aware of such a program.
>:>
>:> Not likely, since the details of the text format and the desired XML
>:> document structure are up to you. You just need to write something that
>:> reads the text file, since you know its structure, and builds the XML
>:> document the way you want it from the data, then writes it.
>:>
>:> = Steve =
>:
>:Hi Steve,
>:
>:Have you written something to build XML documents as you describe?
>:
>:L


Not personally, but my coworker has done this. Our application does
high end modeling and simulation, using XML documents for the saved
model format. He worked on the previous incarnation of the application,
which used a completely different (pure text) file structure. So he put
together an "importer" that read the old file and put it into the
appropriate structure for our application.

It's just a matter of deciding what the structure of your XML document
should be and knowing what's in the text file. You create a new XML
document with appropriate code in Java, then add/manipulate elements and
attributes as needed to obtain the desired result.

= Steve =
--
Steve W. Jackson
Montgomery, Alabama
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any tool to convert java raw code (a la java 1.4) into generics code Royan Java 8 02-15-2008 02:35 PM
Convert Java crypto class code to ASP or .NET class code Wind ASP .Net Security 0 02-05-2007 07:14 AM
Convert Java Model to Java Model without XML erinbot@gmail.com Java 1 10-06-2006 09:00 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
Job to convert Java App 1.3.1 to Java Newest of Java Michael Kintner Java 0 11-30-2003 04:42 AM



Advertisments