Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: XML form
Ok i will revised my question.
 
The scenario: The comment area will be located in a bottom part of every article ie. news article. Every viewer can post their comment on that article posted. This is going to be save in an xml file and not on database. Does it need to create 1 xml file in every article or maybe there is another solution on this? one good example is a news article where viewer can post comment/s on that particular article.
Posted 15-Nov-12 6:42am
Edited 16-Nov-12 3:19am
RyanDev125K
v3
Comments
ryanb31 at 15-Nov-12 11:46am
   
Just use a Comments tag. I guess I don't understand the question.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Sorry for that.
 
Ok lets say two viewer posted in that article and in just few seconds only are their interval. That's why i want to use an xml file for this so i will not have much trouble in saving to DB. I dont know the other issues in this case by saving two at a time in xml file.
  Permalink  
Comments
lewax00 at 15-Nov-12 12:51pm
   
To comment on another person's answer, press the "Have a Question or Comment?" button, to edit your question, use the "Improve question" button, and to reply to a comment use the "Reply" button. Don't add a solution unless it is actually a solution to the question...
Ed Gepulle at 15-Nov-12 12:58pm
   
ok got your point. excuse me for that.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Please don't copy and paste across multiple sites and not clean up your post.
 
I would create one file per article, even then, not using a DB is the core of your issue. Then you can store comments in that file, but you'll have issues. You have a file on the HDD, what happens when two people comment at once ?
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 315
1 OriginalGriff 273
2 Aajmot Sk 224
3 Marcin Kozub 210
4 Richard MacCutchan 200
0 OriginalGriff 7,853
1 Sergey Alexandrovich Kryukov 7,107
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100