Win a copy of Java Challengers this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

HOW TO CONVERT TEXT FILE TO XML FILE GENERICALLY

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I need to convert text file into Xml file using DOM
i dont know anything about XML..
I want to implement such class in java which can generically convert
any information provided in the text file to XML.
user may give any inputs we need to convert that as child nodes
and can enter data..

Since i am very new about XML DOM in java may be very basic thing i am asking help
Thanks a lot!
 
lowercase baba
Posts: 12982
66
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not an XML expert by any means, but this problem does not seem very well defined.

"convert any information provided into XML"

You want to be able to convert, say, the U.S. Constitution, a list of elements and their atomic weights, and a recipie for chocolate chip cookies, all into XML, with the same generic program?

This does not sound trivial to me...
 
amogh deshpande
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Fred Rosenberger:
I am not an XML expert by any means, but this problem does not seem very well defined.

"convert any information provided into XML"

You want to be able to convert, say, the U.S. Constitution, a list of elements and their atomic weights, and a recipie for chocolate chip cookies, all into XML, with the same generic program?

This does not sound trivial to me...




ya Exactly i am extremly sorry for that.Since i am so confused and dont know anything abt XML..this happens.from where to start is prb for me?
Thanks a Lot.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is not an unusual problem so you might be able to make use of one of the XML "pipeline" toolkits I discussed in this article and this article.
Some of these toolkits such as "ServingXML" are designed to convert text files to XML genericallly, as long as there is some degree of order to the text.
Here is the home page for the open source Serving XML toolkit
Bill
 
amogh deshpande
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by William Brogden:
This is not an unusual problem so you might be able to make use of one of the XML "pipeline" toolkits I discussed in this article and this article.
Some of these toolkits such as "ServingXML" are designed to convert text files to XML genericallly, as long as there is some degree of order to the text.
Here is the home page for the open source Serving XML toolkit
Bill



Thanks A lot William .i'll go thru .
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic