Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all,
Vanilla are planning an update to the site on April 24th (next Wednesday). It is a major PHP8 update which is expected to boost performance across the site. The site will be down from 7pm and it is expected to take about an hour to complete. We appreciate your patience during the update.
Thanks all.

help needed to create a file

  • 15-07-2007 6:51pm
    #1
    Registered Users Posts: 1,870 ✭✭✭


    HI,
    I want to create a file with my test data.
    I am not sure how to do this.
    Can anyone help/suggest ?
    I am not a developer :-( but i can give a try if suggested..

    Requirement:
    I have my data in a excel file: name,ssn number,account number

    I want to have a front end form (may be in html/jsp) with
    a textfield with text "number of lines":
    and submit button.

    when i enter number of lines = 3 and hit submit, i want a xml file to be created with a predefined text:
    <xml>
    <some constant text>
    <name1></name>
    <ssn1></ssn>
    <account1></account>
    <name2></name>
    <ssn2></ssn>
    <account2></account>
    <name3></name>
    <ssn3></ssn>
    <account3></account>
    </some constant text>

    3 records of data should be copied from excel file and create a xml file.

    can anyone help please?


Comments

  • Registered Users Posts: 4,276 ✭✭✭damnyanks


    homework ?


  • Moderators, Politics Moderators Posts: 38,822 Mod ✭✭✭✭Seth Brundle


    damnyanks wrote:
    homework ?
    if(look == duck)
    {...}
    


  • Closed Accounts Posts: 19,777 ✭✭✭✭The Corinthian


    You don't need to program anything. Just insert a number of columns between your fields, populate the element tags in the empty columns, select and copy into a text file and then do a find replace all on the tab characters that will be pasted in when you do this to get rid of them and clean up your document. Job done.


This discussion has been closed.
Advertisement