How do I convert text to XML in C?

Posted by pedro on Stack Overflow See other posts from Stack Overflow or by pedro
Published on 2010-03-23T11:19:30Z Indexed on 2010/03/23 11:33 UTC
Read the original article Hit count: 374

Filed under:
|

How can I make a program that opens a text file, and converts it into a XML file?

The XML might look like:

<curso>
 <sigla>LTCGM</sigla>
 <NAlunos>1</NAlunos>
 <lista_alunos>
  <aluno>
   <numero>6567</numero>
   <nome>Artur Pereira Ribeiro</nome>
   <email>[email protected]</email>
   <estado>Aprovado</estado>
   <media_notas>13</media_notas>
   <maior_nota>16</maior_nota>
   <menor_nota>11</menor_nota>
  </aluno>
 </lista_alunos>
</curso>

© Stack Overflow or respective owner

Related posts about c

    Related posts about homework