Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help please!! Posting submissions to top of a file

Status
Not open for further replies.

andre2

Technical User
May 10, 2001
4
0
0
US
I really hope someone can help me, because I've posted this to 4 forums with no avail.

I'm using an ASP script with the Microsoft XML DOM to append HTML form data to an XML document.

I am using this as a news submitting system for my website. The problem is this - new entries, which are contained in the element <news> are appended to the bottom of the XML file, with older entries on top.
Obviously, it doesn't make sense for a user looking for news to scroll down to the bottom of the page to get the newest news! So how would I tell the script to insert new <news> entries at top above older <news> entries?
 
One way would be to append a date into your file and sort it by date when displaying the data. Tony
:cool:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top