Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8009985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:36:14+00:00 2026-06-04T18:36:14+00:00

I am taking CSV data, displaying it to the user with input fields. I

  • 0

I am taking CSV data, displaying it to the user with input fields. I am looking to take these values update the Json and converted to XML. Is it possible to update Json with user inputs or is there a different way to do this?

$(document).ready(function() {
    $.getJSON(
        'CSV.php', 
        function(data) {
            $.each(data, function(index, element) {
                newDiv = $('<div/>').addClass('row').appendTo('#showdata');
                $('<div class="options">Payment Format: <select name="Payment_Format"><option value="CCC" selected="selected">Company to Company</option><option value="PPP">Company to Person</option></select> </div>').appendTo(newDiv);
                $('<div class="field">' + value + '</div>').appendTo(newDiv);
            }
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:36:15+00:00Added an answer on June 4, 2026 at 6:36 pm

    You will pretty much need to follow this flow:

    1. Parse the JSON into an “object” native to your programming language (this should be easy since you are using javascript)
    2. Retrieve user input and update the object accordingly (obj.name = user_input)
    3. Convert the object to XML (ew) and output it. Check out an example of this from a previous SO post

    I’m not going to force you to use JSON entirely but I will ask you to consider it if you can. It plays much nicer with JS and there are tons of libraries out there for other languages. Not to mention it uses significantly less data than XML. If your hands are tied on this though, this is the approach to take

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating files based on user data (taking from the database table, writing to
So I'm reading a CSV file with two columns, and then taking the product
Taking this file as an example, I'm trying to read the data in a
taking value in 1st textbox and want to display it in 2nd.. 1st <input
Is it possible to get the values for a TestCaseAttribute from an external data
Taking beginning Data Structures in C# class, trying to make a searchable arraylist of
What I'm trying to do is to convert some archived CSV data. It all
I'm taking data from a list that I populate a DataGridView with and am
I need a robust method that would combine multiple CSV files, taking into account
I'm using chcsvparser to parse data from a csv file on my apps launch.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.