jpmoriarty
09-24-2004, 06:08 AM
Because of the limitations of my company's woeful intranet, I'm investigating using XML files to populate my intranet pages (we have no DB access believe it or not...)
I'm new to ASP - I'm a PHP man at heart, but I'm game for new things. From what I've read, and seen to a certain extent, I want to use an XML file (e.g news.xml) and populate it with data (eg headline, date added, content, hyperlink - that sort of thing). I presume it will look something like this:
<?xml version='1.0'?>
<article id="1">
<title>1</title>
<content>This is the text</content>
<link />
</article>
<article id="2">
<title>Title 2</title>
etc etc
Am I on the right lines? Can someone direct me to / help me out with some code that would pull this data out? And can I search the XML data and display particular stories (e.g. have a category field, and then display only stories that are a certain category?) And then what about people adding their own stories - so adding an article (presumably) to the bottom of the existing XML file?
Unfortunately because it won't let me search on XML on this board (it's only 3 characters...) I can't really find a greta deal out!!
many thanks in advance - looking forward to getting as into ASP as I am PHP...
I'm new to ASP - I'm a PHP man at heart, but I'm game for new things. From what I've read, and seen to a certain extent, I want to use an XML file (e.g news.xml) and populate it with data (eg headline, date added, content, hyperlink - that sort of thing). I presume it will look something like this:
<?xml version='1.0'?>
<article id="1">
<title>1</title>
<content>This is the text</content>
<link />
</article>
<article id="2">
<title>Title 2</title>
etc etc
Am I on the right lines? Can someone direct me to / help me out with some code that would pull this data out? And can I search the XML data and display particular stories (e.g. have a category field, and then display only stories that are a certain category?) And then what about people adding their own stories - so adding an article (presumably) to the bottom of the existing XML file?
Unfortunately because it won't let me search on XML on this board (it's only 3 characters...) I can't really find a greta deal out!!
many thanks in advance - looking forward to getting as into ASP as I am PHP...