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 8148073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:34:31+00:00 2026-06-06T14:34:31+00:00

I have a XML file like this <?xml version=1.0 encoding=utf-8?> <Survey Name=Aerosmith’s Survey Id=S2

  • 0

I have a XML file like this

<?xml version="1.0" encoding="utf-8"?>
<Survey 
Name="Aerosmith's Survey" 
Id="S2"
UserId="Admin"
CreatedBy="Administrator"
cultureName="en-CA" 
numberOfQuestions="5"
completedPercent="0" 
createdTimeStamp="June 26, 2012 16:01" 
lastUpdatedTimeStamp="">
<Questions>
<Question
    id="q1"
    name="Question #1" 
    type="SingleChoice" 
    allowBackButton="false" 
    isRequired="true" 
    numLines="0" 
    questionIndex="1">
        <QuestionText>Who is your favourite Aerosmith's Member ?</QuestionText>
        <Answers>
            <Answer answerIndex="1" >Joey Kramer</Answer>
            <Answer answerIndex="2" >Steven Tyler</Answer>
            <Answer answerIndex="3" >Tom Hamilton</Answer>
            <Answer answerIndex="4" >Joe Perry</Answer>
            <Answer answerIndex="4" >Brad Whitford</Answer>
        </Answers>
        <Response respondedTimeStamp=""></Response>
        <OnChoice></OnChoice>
    </Question>
    <Question 
        id="q2"
        name="Question #2" 
        type="MultipleChoice" 
        allowBackButton="true" 
        isRequired="true" 
        numLines="0" 
        questionIndex="2">
        <QuestionText> Which is your favourite Aerosmith Song ?</QuestionText>
        <Answers>
            <Answer answerIndex="1" >Dream On</Answer>
            <Answer answerIndex="2" >Sweet Emotion</Answer>
            <Answer answerIndex="3" >Walk this way!!</Answer>
            <Answer answerIndex="4" >I Don't Want to Miss a Thing</Answer>
            <Answer answerIndex="5" >Jaded</Answer>
        </Answers>
        <Response respondedTimeStamp=""></Response>
        <OnChoice></OnChoice>
    </Question>
    <Question 
        id="q3"
        name="Question #3" 
        type="Date" 
        allowBackButton="true" 
        isRequired="true" 
        numLines="0" 
        questionIndex="3">
        <QuestionText>What is Your Date of birth?</QuestionText>
        <Answers></Answers>
        <Response respondedTimeStamp=""></Response>
        <OnChoice></OnChoice>
    </Question>
</Questions>
</Survey>

Now in my App I have used a SAX parser to read these.
Now each question has a question type as you can see in my xml.

<Question
    id="q1"
    name="Question #1" 
    type="SingleChoice" 
    allowBackButton="false" 
    isRequired="true" 
    numLines="0" 
    questionIndex="1">

based on this I have populated my Checkbox in a list view.

Now what i want to do is that suppose any user checks an item then in the tag

<Response respondedTimeStamp=""></Response>

I have to write the time stamp and the response value as text for that particular question.

So How do i do it?

  • 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-06T14:34:33+00:00Added an answer on June 6, 2026 at 2:34 pm

    You can use XStream library for writing the data to the xml.

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

Sidebar

Related Questions

I have an XML file formatted like this: <?xml version=1.0 encoding=utf-8?> <Snippets> <Snippet name=abc>
I have created an xml file like this: <?xml version=1.0 encoding=utf-8?> <ListView xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=match_parent
I have an XML file looks like this: <?xml version=1.0 encoding=utf-8 ?> <PathMasks> <Mask
I have an options_menu.xml file like this: <?xml version=1.0 encoding=utf-8?> <menu xmlns:android=http://schemas.android.com/apk/res/android> <item android:id=@+id/search
If I have a xml file with something like this: <?xml version=1.0 encoding=utf-8 ?>
I have a xml file like this <?xml version=1.0 encoding=UTF-8?> <gallery > <gallerydata> <galleryname>
I have a XML file like this : <?xml version=1.0 encoding=UTF-8 standalone=no ?> <user>
I have an XML File that looks like this: <?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
have an xml file like this. <?xml version =1.0 encoding =utf-8?> <menu> <menuNode title=Register
I have a simple xml file that looks like this: <?xml version=1.0 encoding=UTF-8 standalone=yes

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.