Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Writing in XML file
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Writing in XML file

 Post Reply Post Reply
Author
OZON View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2002
Location: Macedonia
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote OZON Quote  Post ReplyReply Direct Link To This Post Topic: Writing in XML file
    Posted: 10 March 2008 at 12:46pm
How to write in google sitemap.xml file when insert new record in database? I'd like when I insert new record in my SQL database, the new record to be writed also in sitemap.xml file. Is there posibillity to do that?
Back to Top
alemcherry View Drop Down
Newbie
Newbie


Joined: 20 January 2008
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote alemcherry Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2008 at 8:27pm
As simple as opening the text file in appening mode, writing the the xml markup and closing the file! Use filesystem object. XML is plain text format, nothing complex there!
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2008 at 10:57pm
you could always name the file as "sitemap.asp" and have it dynamic, listing all records in a table.

This does work, as ive used it on a few websites.

Though it does depend on how often the file will be updated.
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.