I am working on an school assignment where I have a file. And I need to make a Java program to make it to an XML file. I almost have got the whole program working. But there is a little fault in it.
Let's say this is the file I read in:
What I would like this part as:Quote:
First day of the week.
Second day of the week.
Almost until it is weekend again.
Now busy with school.
<note>First day of the week.
At the moment I get back:
<note>First day of the week.</note>
How do I solve this?
I was thinking of HashMap.
But can I also print this HashMap to the file I would like?