locked
Generating XML file RRS feed

  • Question

  • User-541003552 posted

    Hello All,

    I have to generate an xml file by populating it with data from a database using the the template below which is an xml file. What i want to do is to call the template and fill in the data for each row and add it up to a new xml file that will be generated. Can anyone help me on how to achieve this or a sample code will be much appreciated.

    Thanks in advance

    <Student 
    IdNo="{Number}" 
    FirstName="{fname}" 
    LastName="{lname}"
    DateOfBirth="{dob}" 
    Class="{level}" >
        <Guardian GFirstName="{gfname}" GLastName="{glname}" MobileNo="{mobile}" />
    </Student>

    Friday, October 10, 2014 7:42 AM

Answers