SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: XML Help

  1. #1
    SitePoint Guru davedibiase's Avatar
    Join Date
    Aug 2001
    Location
    Toronto, Canada
    Posts
    829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XML Help

    Hello,

    I am in charge of producing an online survey except it has to be done this specific way. I was wondering if I could use XML to help me complete the task.

    I have an eleven page survey that needs to be transmitable and editable by other survey takers.

    The survey is currently in HTML and I was wondering if I could somehow embed XML into the HTML file then when the user wants he can take the survey by opening the file up and changing it then resubmitting it.

    Any ideas?

    Is it possible?

    (I have used XML before, but in a very small project)
    ||Dave Di Biase||
    ----------------------------------
    "There are 2 secrets in life. 1) Never say everything you know."
    GFXWARS - The ultimate graphics battle!

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Isn't this the best way to do it?
    1) Store the survey as xml, and use xsl to transform the xml to html (a form with textboxes, radio buttons etc)
    2) When a user submits the form, send the answers as xml

    When you say "transmittable", what do you mean exactly? Send the survey as an email attachment (=problem using xml+xsl I guess) or just distribute to other web sites?

    I wouldn't recommend letting users edit the xml file directly, a little client side javascript to collect info from the form elements is more "secure"

    Another method is this one (requires that everyone is using Outlook):
    http://www.slipstick.com/dev/olforms/survey.htm

  3. #3
    Non-Member
    Join Date
    Jan 2003
    Posts
    5,748
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use XML then you can use a Web Service to transmit the survey a lot easier; the recipient can then use the data as s/he sees fit ?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •