Is it plain text or does it have some internal formatting?
What should the format of the XML be, and what is its purpose? This is important because there's an unlimited number of ways to convert an arbitrary text file into an XML file.
samir vasani
Ranch Hand
Joined: Nov 24, 2010
Posts: 55
posted
0
Lester Burnham wrote:Is it plain text or does it have some internal formatting?
What should the format of the XML be, and what is its purpose? This is important because there's an unlimited number of ways to convert an arbitrary text file into an XML file.
But the on which i wish to work is in the following formate:
I have attached the file,becuase the view of the .txt is imperfect.
So please find the attached copy and go through it So i to change the code for the above formate
Help me please to resolve it
[ UD: In the future, please UseCodeTags when posting code of an length. It's unnecessarily hard to read the code ptherwise, making it less likely that people will bother to do so. ]
I have attached the file,becuase the view of the .txt is imperfect.
I don't see that; try posting it.
You need to look at JAXB or Castor for this.
No. There are any number of ways of creating XML, including the one shown in samir's code. What's more, tools like JAXB and Castor suppose the existence of Java classes that are mapped to XML elements - yet samir's posts don't sound like those classes exist.
samir vasani
Ranch Hand
Joined: Nov 24, 2010
Posts: 55
posted
0
Lester Burnham wrote:
I have attached the file,becuase the view of the .txt is imperfect.
I don't see that; try posting it.
You need to look at JAXB or Castor for this.
No. There are any number of ways of creating XML, including the one shown in samir's code. What's more, tools like JAXB and Castor suppose the existence of Java classes that are mapped to XML elements - yet samir's posts don't sound like those classes exist.
I want guidence or code for the following text formate
please notuce one thing that there is a tab space("/t") between each column
Lester Burnham
Rancher
Joined: Oct 14, 2008
Posts: 1337
posted
0
This:
doesn't look substantially different from this:
Different delimiter character, and different number of items per line, but that's about it. What problems are you encountering while adapting your earlier code?
samir vasani
Ranch Hand
Joined: Nov 24, 2010
Posts: 55
posted
0
Lester Burnham wrote:This:
I want out put of xml in the following formate
Different delimiter character, and different number of items per line, but that's about it. What problems are you encountering while adapting your earlier code?
Lester Burnham
Rancher
Joined: Oct 14, 2008
Posts: 1337
posted
0
What do you have so far? What does it do, and where are you stuck making it do what you want it to do?
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.