Login
Search   Moderators Wanted: If you're interested please send your portfolio to info[at]itechforums.com
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 2
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2010, 12:49 AM
keysar7 keysar7 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 1
Default

How can I store varying lists of elements for each item in my XML file?


How can I store varying lists of elements for each item in my XML file?

In this example I'm trying to store all the invitees for various parties... Each party will have a different number of invitees of course...

party
descriptionBirthday Party/description
guestJames/guest
guestJessica/guest
guestRob/guest
/party


party
descriptionHousewarming Party/description
guestPeter/guest
guestJames/guest
/party


Does this work? Is there a better way to list guests? I'm feeding this file into a flash file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2  
Old 03-04-2010, 12:49 AM
Jason W-S Jason W-S is offline
Junior Member
 
Join Date: Mar 2010
Posts: 1
Default

give your sub-elements ID attributes

guest id=1Peter/guest
guest id=2James/guest


You can do it without the ID's, but when it comes time to actually sort this information or call a specific element, you'll thank me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
When you store the image file in Mysql from a CMS, HOW do you actually... yasoulaki MySQL 0 04-04-2009 09:24 PM
Is it possible to add elements to an xml file permanently using javascript? Matthew XML & XUL 0 03-31-2009 09:57 PM
How to read and write file and store the contents of uploaded file in mysql... jimmy MySQL 1 01-20-2009 10:16 AM
i have a xml file with many fields in it.now i want to store the values of... madhu s XML & XUL 0 09-12-2008 05:48 PM
store html in xml file and call it into a <div> tag.? lon24m XML & XUL 0 09-09-2008 03:14 AM

Your Ad Here

All times are GMT. The time now is 03:49 AM.