Click here to Skip to main content
13,458,837 members
Rate this:
Please Sign up or sign in to vote.
See more:
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 5:42am
Updated 16-Nov-12 2:19am
ryanb31 15-Nov-12 11:46am
Just use a Comments tag. I guess I don't understand the question.
Rate this: bad
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.
lewax00 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 15-Nov-12 12:58pm
ok got your point. excuse me for that.
Rate this: bad
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 ?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01-2016 | 2.8.180323.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2018
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