Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Updated 16-Nov-12 2:19am
v3
Comments
ZurdoDev 15-Nov-12 11:46am    
Just use a Comments tag. I guess I don't understand the question.

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.
 
Share this answer
 
Comments
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.
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 ?
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900