How to remove the 1 line....
I need a little help with my code.
I am reading in an file with an GeneID name, and under the a sequence.
I almost got the XML file I need.
And I also have another program to read the correct XML file.
But I have 1 little problem with the write XML program.
What my program writes is:
Code:
<?xml version="1.0"?>
<data>
[COLOR="Red"]</fasta>[/COLOR]
<fasta>
<geneID>>Contig1</geneID>
<sequentie>tgctttagtatatcattacttattttaatttagcttttatgtcacaaacttggtcacaat</sequentie>
<sequentie>gtttaaacactcttagagacagtattcccctttctcaatatagtgtatggatacaaccct</sequentie>
<sequentie>taaaagcacttgaaaacaacaacaccttatctttattagcacccaattcacaagttctta</sequentie>
<sequentie>attacattaataaacacctaaaagctcaaatcaaaaatgcggttgcacaacacaacaaaa</sequentie>
<sequentie>atttaaaaatttttataagtattgcatctaatcaaaatacccaacagcatatcactcctt</sequentie>
<sequentie>tatttgaagactatacatttgataatttaatactgggcaatgccaatcaaatggcctatg</sequentie>
<sequentie>gcgcaactaaacaaattgctgaaaatataaaaacctcgccctataatccttttattatct</sequentie>
</fasta>
<fasta>
<geneID>>contig2</geneID>
<sequentie>aaaaaaatcaaaatattaaagtgatttacgtacccttgatggattttgttagaaatatta</sequentie>
<sequentie>cctctagcctgaggcacaatactattgaaaatattaaaactttttatcagtctgctgatt</sequentie>
<sequentie>tattattggttgatgatattcatttaattgcaggaaaggaaaaatctcaagaagagtttt</sequentie>
<sequentie>ttcatatttttaatttcctatttaatggtaaaaagcaaattatttttacctgcgatcaat</sequentie>
<sequentie>cgcctaaaaacataaaatcactagaaaatcgtttaaaaactcgattttcacaaggtttaa</sequentie>
<sequentie>acctacatttaactcccccagaattagagatgcgtgctgctattttgcttaaaaaatcac</sequentie>
<sequentie>aaaataaaagaattaacatcaacttaacagaagacactgctttatttattgctactcata</sequentie>
<sequentie>ttgcttctaatgttagagaccttgaaggggctcttcttaaactcaaagcttttgttgatt</sequentie>
<sequentie>tttcaaaaataaatcatgattttatttctaaagagattgtcgaaacagccttaggtgatt</sequentie>
</fasta>
</data>
The file is correct, I only need to make the program not to print the red line.
I know why he prints it.
But how do I remove it?
I anyone could help me it would be great. :)
I must note that I will remove my programming code later, becose there is also 1 of my fellow students busy with programming in Java too. The rest has another programming language.