XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 10th, 2003, 11:17 PM
yskh yskh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 43 yskh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
XML for dynamic data

Hi,
i am new to XML and need help from you:
i have created a HTML file that does the following: using select and option tags; a list of names and ages are provided. every name has a predefined age. the user has to select a name and an age and click on the submit button. if he selects the correct match, a congratulatory message is displayed and if not,an error message is displayed.the matching is done on the server side using a servlet.
what i need to accomplish is that: when the submit button is clicked by the user, an XML file defining the user selection is to be created. this XML is sent to the server which interprets the inputs and using servlets produces the output.
the above problem may seem too trivial to use XML,servlets etc. but the fact is that i have to implement a similar functionality(much more complex) and the main reason for me to post this question is to know how to define XML for dynamic data ie data which the user can change anytime, as shown above. this XML file is used by a servlet to perform processing. i am more interested in how to define XML for dynamic data.
since i am new to XML, i am really finding it difficult to implement such a functionality
waiting to get a reply at the earliest.
thanks in advance.

Reply With Quote
  #2  
Old December 11th, 2003, 05:53 AM
whitelines's Avatar
whitelines whitelines is offline
action=(isSleep())?sleep:code;
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Sydney->Indiana
Posts: 182 whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 15 h 8 m 29 sec
Reputation Power: 10
XML is perfectly suited to dynamic data, there's no need to define a "special" type. What you'll need to do is define an XML schema or DTD, then you'll write your XML file according to this, eg; <name>someName</name>
<age>23</age>
Java has inbuilt libraries for navigating through the DOM of an XML (the way the XML is stored in memory), parsing and writing XML according to your schema. You'll find tutorials for all these things all over the place, start with google.

HTH,
W

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XML for dynamic data


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT