I have a program in Visual Studio which gives the output in an XML file. It looks like so:
<?xml version="1.0" encoding="utf-8"?> <leaCEDS> <district> <leaID>01</leaID> <name>Alachua</name> <organizationType>LEA</organizationType> <streetLine1>620 E University Ave</streetLine1> <city>Gainesville</city> <stateProvince>FL</stateProvince> <postalCode>326015448</postalCode> <county>Alachua</county> <NCESID_district>1200030</NCESID_district> <date_created>2015-06-01T20:38:58.9730000</date_created> <date_updated>2015-06-01T20:38:58.9730000</date_updated> </district> </leaCEDS>
I have now been told that I need to have the output for the XML file saved in this format..
<leaCEDS xlmns="http://specification.sifassociation.org/Implementation/na/3.2/html/CEDS/K12/K12_leaCEDS.html#LinkD"> <districtEntry> <identification> <leaId>0001</leaId> <name>Alachua County Public Schools</name> <organizationType>LEA</organizationType> </identification> <addressList> <address> <street> <line1>620 East University Avenue</line1> <line2></line2> </street> <city>Gainsville</city> <stateProvince>FL</stateProvince> <postalCode>32601-5448</postalCode> <county>Alachua</county> </address> </addressList> <district> <reference> <NCESID>1200030</NCESID> </reference> </district> </districtEntry> <leaCEDS>
How would I do this? I have tried looking up some solutions but haven't really found anything. Maybe a solution is using XSLT? I honestly don't believe that what i am being asked for is proper XML file format but it's something I must do.
Here is what my program looks like for clarification.