saving form html into XML (attributes)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: saving form html into XML (attributes)

  1. #1
    Join Date
    Jul 2004
    Posts
    3

    saving form html into XML (attributes)

    My problem is the following:

    I need to have a form in html that parses the field values into a xml document.

    The form fields are


    showStart
    showEnd
    title
    description
    startDate
    endDate
    allDay
    eventType


    I got this going but... I can only get them as childs of my root. I need them to be an attribute.
    So my XML output would look like (italic are the form values):

    <events startDate="showStart" endDate="showEnd">

    <event title="title" description="description" startDate="startDate" endDate="endDate" allDay="allday" eventType="eventType" />

    </event>
    </events>


    I now use an asp form, but I can't get it so it parses attributes! Can someone please help?!

  2. #2
    Join Date
    Jul 2004
    Posts
    6
    hi
    can u send me the server side asp page
    so that i can help u.

    kotesh.

  3. #3
    Join Date
    Jul 2004
    Posts
    3
    this is where I found a sample script. I changed the root into events and event. But I couldn't get it to parse info to attributes... maybe you could?

    here's the script

  4. #4
    Join Date
    Dec 2004
    Posts
    1
    is this also available in PHP ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center