Go Back   SitePoint Forums > Forum Index > Program Your Site > XML and Web Services
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Jul 27, 2007, 07:29   #1
stevieg_83
SitePoint Zealot
 
Join Date: Nov 2004
Location: Glasgow
Posts: 143
xml classifieds application

hi folks,
I'm building a system that works like classified adverts.
I have a simple ASP form that takes the users details and generates the XML code to send to an email address.
I then have an ASP page that reads a folder within my inbox that contains the XML, javascript that adds an incremental id to each advert and then adds the advert(s) to the master XML file (and backs up the old one).
What I need to do is get some idea of how I can display all of the adverts and then either edit via html or delete permanently without touching the xml file. Also a way to add adverts to the xml file would be great.
Any ideas on how this can be done?
Some of the functionality I've inherited from a previous developer but have managed to enhance with some basic xsl.
Thanks,
S
stevieg_83 is offline   Reply With Quote
Old Jul 27, 2007, 07:52   #2
kgun
SitePoint Addict
 
Join Date: Nov 2005
Location: Moss, Norway.
Posts: 280
Quote:
Originally Posted by stevieg_83 View Post
I'm building a system that works like classified adverts.
I have a simple ASP form that takes the users details and generates the XML code to send to an email address.
I then have an ASP page that reads a folder within my inbox that contains the XML, javascript that adds an incremental id to each advert and then adds the advert(s) to the master XML file (and backs up the old one).
If you have the option to use PHP, this thread have the necessary information to do it in that language. Ideally it should be independant of sever side language.

Quote:
Originally Posted by stevieg_83 View Post
What I need to do is get some idea of how I can display all of the adverts and then either edit via html or delete permanently without touching the xml file. Also a way to add adverts to the xml file would be great.
Any ideas on how this can be done?
Some of the functionality I've inherited from a previous developer but have managed to enhance with some basic xsl.
The XML one source many applications philosophy is especially targeted to solve this problem. You transform an XML document to the desired format like another XML (RSS, XSL(T) style sheet etc.), (X)HTML, PDF, WAP file etc. using XSLT.
kgun is offline   Reply With Quote
Old Jul 27, 2007, 08:04   #3
stevieg_83
SitePoint Zealot
 
Join Date: Nov 2004
Location: Glasgow
Posts: 143
unfortunately, PHP isn't an option. We're a Microsoft house and don't have it installed, although every web developer would kill for it.

The easier option would be a database but we don't even have one of those!
stevieg_83 is offline   Reply With Quote
Old Jul 27, 2007, 08:25   #4
kgun
SitePoint Addict
 
Join Date: Nov 2005
Location: Moss, Norway.
Posts: 280
A database may be overkill, depending on what you want to do and various future growth scenario's. A well organized XML driven site, may even be better for some purposes.

Note: there is very much you can do with technologies like XSL(T), EXSLT, XPath, XLink etc. Ignore the PHP related information in the above mentioned link, and you find a lot of information.

Related thread: EXSLT Support at StylusStudio.
kgun is offline   Reply With Quote
Old Jul 27, 2007, 08:37   #5
stevieg_83
SitePoint Zealot
 
Join Date: Nov 2004
Location: Glasgow
Posts: 143
unfortunately we work with FrontPage 2003 so we're limited in what we can achieve.
stevieg_83 is offline   Reply With Quote
Old Jul 27, 2007, 08:46   #6
kgun
SitePoint Addict
 
Join Date: Nov 2005
Location: Moss, Norway.
Posts: 280
But you can write XML markup with FrontPage?

I have never used FrontPage since I use DreamWeaver where it is even possible to write ASP JavaScript, VBScript, ASP.NET C#, ASP.NET VB. In addition DreamWeaver has an inbuilt XML Validator (File + Check Page + Validate as XML).

Example if you are on a fast connection and have the latest version of either FireFox, IE or Opera installed.

Professional links collected since 1995.

That is an XML file. View source and you may note the style sheet that makes the document readable in modern browsers.

That style sheet is
  • A well-formed XML document in it self.
  • Relatively small, compact and generated automatically by a parser.

While on that page with the heading "Professional links collected since 1995" use page Search (CTRL + F) for the KW: XML

and you find a lot of XML related information. You find more up to date if you do the same page search on my site OopScool and especially if you do it on the page that is loaded when you click "links" in the upper right corner.

May be overkill, but it will direct you to a lot of foccused XML resources.

When the style sheet is viewed in FireFox you may get the following message:

"This XML file does not appear to have any style information associated with it. The document tree is shown below".

So if you for one reason or another want to apply a hierarchy of XSL Style Sheets, that is possible too.

Last edited by kgun; Jul 27, 2007 at 09:39.
kgun is offline   Reply With Quote
Old Jul 28, 2007, 07:22   #7
usflashmap.com
Non-Member
 
Join Date: Apr 2006
Posts: 5
http://www.usflashmap.com/component/flash_xml_menu.htm
usflashmap.com is offline   Reply With Quote
Old Jul 29, 2007, 09:17   #8
kgun
SitePoint Addict
 
Join Date: Nov 2005
Location: Moss, Norway.
Posts: 280
Quote:
Originally Posted by stevieg_83 View Post
hi folks,
I'm building a system that works like classified adverts.
I have a simple ASP form that takes the users details and generates the XML code to send to an email address.
I then have an ASP page that reads a folder within my inbox that contains the XML, javascript that adds an incremental id to each advert and then adds the advert(s) to the master XML file (and backs up the old one).
What I need to do is get some idea of how I can display all of the adverts and then either edit via html or delete permanently without touching the xml file. Also a way to add adverts to the xml file would be great.
Any ideas on how this can be done?
Some of the functionality I've inherited from a previous developer but have managed to enhance with some basic xsl.
Thanks,
S

Quote:
Originally Posted by usflashmap.com View Post
Is it possible to give an explanation? Do you think that software solves his problem?
kgun is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 14:19.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved