I want to put the data below that is in a text file ( txt
) to XML
, what is the C#
code?
# Number | Gender | GivenName | Surname | StreetAddress | City | StateFull | ZipCode | EmailAddress | Username | Password | TelephoneNumber | MothersMaiden | Birthday | Age | Occupation | Company | Vehicle | BloodType | Kilograms | Centimeters | GUID | Latitude | Longitude
§ 1 | male | Estevan | Rodrigues | Avenida 25 Abril 74 | Viseu | Viseu | 3510-150 | [email protected] | Forenot | EighahN5ei | 2325827898 | Correia | 1/10/1953 | 64 | Home appliance repairer | Maxaprofit | 2005 Lancia Lybra | A+ | 71.3 | 169 | d4f8d88d-afe1-4c63-821a-278883d6bb49 | 41.010337 | -7.923389
§ 2 | male | Joao | Santos | R Afonso Albuquerque 27 | Fonte Cova | Leiria | 2425-609 | [email protected] | Districe1986 | ipe3ihae9oeKei | 2445343980 | Cardoso | 3/31/1986 | 31 | School social worker | W. Bell & Co. | 1998 Subaru SVX | O+ | 98.9 | 185 | 021a1dc3-5b75-4868-bb03-333170ce9acb | 39.980212 | -8.911969
XML format:
<blooddonors>
<donor>
<Number>1</Number>
<Gender>male</Gender>
<GivenName>Estevan</GivenName>
...
</donor>
<donor>
<Number>2</Number>
<Gender>male</Gender>
<GivenName>Joao</GivenName>
...
</donor>
</blooddonors>