Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Xml For Dynamic Website Content
crazyfray
post Nov 19 2007, 10:34 PM
Post #1


Member [Level 2]
*****

Group: Members
Posts: 77
Joined: 11-November 07
From: London
Member No.: 52,835



Anyone got a site where they're using XML to generate dynamic content?

I'm thinking of using XML for several elements of the website for my workplace, partially because I can easily generate XML through a simple VBA interface far easier than XHTML (since I'm only considering the content), so that I can set up easy ways of changing that content for the completely computer illiterate people I work with. Also, I'm doing an XML course later, so I want ot get some practice in biggrin.gif

Most items would be fairly standard ones, such as a random image header (like the imageloaders used for all the XML tutorials!), and a resource browser for students (same principle, but the images are links too). For example, the news items would have a format like:

QUOTE
<?xml version="1.0"?>
<newsset name="GCS Site Updates">

<newsitem id="1" year="2007" month="11" day="19">
<title>So, it works then...</title>
<author>FR</author>
<description> </description>
<content></content>
<edited changed="false" year="-" month="-" day="-" modtype="-" changedby="-"></edited>
</newsitem>

<newsitem id="2" year="2007" month="11" day="22">
<title>Teething troubles</title>
<author>FR</author>
<description>Didn't work as well as we thought.</description>
<content>So, that didn't work as well as was hoped. Sorry about the downtime, but it'll be for the better.</content>
<edited changed="true" year="" month="-" day="-" modtype="addition" changedby="MA">We're back up now. Thanks for your patience.</edited>
</newsitem>

<newsitem id="3" year="2007" month="11" day="24">
<title>User feedback</title>
<author>FR</author>
<description>Request for people to use the online form.</description>
<content>So, it seems like everyone is happy with the new content, right? Well, that's what I'll assume unless I hear otherwise! So, there's a form at the bottom of this page that you can use to register your (dis)contentment.</content>
<edited changed="true" year="2007" month="11" day="24" modtype="replace">Please use the form below to let us know what we're doing right...or wrong!</edited>
</newsitem>

</newsset>

*****************************


I suspect that in testing, 'description' would be fairly redundant.

Anyway, if anyone has any good XML tutorial sites, that'd be appreciated too.

Notice from jlhaslip:
NB: Didn't use the codebox because it was removing tags.
Quote tags work in those cases

Go to the top of the page
 
+Quote Post
sonesay
post Nov 20 2007, 09:59 AM
Post #2


|||[ n00b King ]|||
*********

Group: [HOSTED]
Posts: 643
Joined: 20-June 07
From: Auckland
Member No.: 45,102



I did one project back about a year ago using xml. but I got to be honest I dont remember much and that was the only time I ever used it so I didnt get too deep in it. Had to use a xlst style sheet for it too but like i said I cant remember lol. It was a joint project with another student we barely passed that paper. I wished i had put more effort in to learn it now I dont have time. anyway show us what you doing with it if you can. links etc.

This post has been edited by sonesay: Nov 20 2007, 10:00 AM
Go to the top of the page
 
+Quote Post
alex1985
post Mar 25 2008, 04:25 AM
Post #3


Super Member
*********

Group: [HOSTED]
Posts: 387
Joined: 9-February 08
Member No.: 57,615



What is better to ue XML or CSS?
Go to the top of the page
 
+Quote Post
rvalkass
post Mar 25 2008, 09:41 AM
Post #4


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,055
Joined: 28-May 05
From: Hertfordshire, England
Member No.: 7,593
Spam Patrol



QUOTE(alex1985 @ Mar 25 2008, 04:25 AM) *
What is better to ue XML or CSS?


XML and CSS are completely different languages with very different purposes. XML is a method of storing, organising and transferring data. It is the language behind XHTML, RSS feeds, configuration files and a whole host of other things. It is really easy to work with, especially from 'inside' a programming language, so you can update the XML files automatically, hence why they are used for RSS feeds and podcasts. They are also human readable and editable, which is why they can be used for data storage and configuration. For example, in a survey/questionnaire system I am developing, we are using XML files to store settings, configuration and survey layouts.

CSS is used to define layout and appearance of web pages. The idea was to take HTML back to what it was supposed to be - centred around the content, not the layout. CSS files are used on pretty much every well-designed website to define fonts, colours, layout and position of every element on the page.

It is not really a matter of which is better, but more which one you actually need to use.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Do You Need A Content Management System?(20)
  2. What's The Best Content Management Software?(15)
  3. Which Is The Best Premade Website?(7)
  4. Man Why Is Everything Hard To Get A Website Design(32)
  5. Excellent Free Website Templates(16)
  6. Help Needed For Alumni Website.(6)
  7. What Are The Steps To Making A Website?(15)
  8. How To Create Smallest Website(21)
  9. Need A Logo For Website Can't Get Into Ideas(10)
  10. Image Not Taking The Right Size In Web Page(1)
  11. How To Beat Ironport(best Website Blocker?)(0)
  12. Php Scripts And Website Templates(6)
  13. Help! Php Or Just Html?(13)
  14. Need Environmental Website Ideas!(0)
  15. Is There An Xbox Live Gamertag Code To Shw The Gamercard On A Website?(1)
  1. My Website Design , Any Suggestions?(13)
  2. Please Rate My Website(19)
  3. Webdesign Frequently Askd Questions(11)
  4. How To Make A Website(18)
  5. Help Creating A Profile Website(12)
  6. How To Build A Good Website(2)
  7. Php Auto Website Title(8)
  8. Flash Media Into Html/css Website(1)
  9. Creating A Good Website, How?!(18)
  10. Dreamweaver Cs3: How To Link Content To Layers/apdivs(5)
  11. Website Layout?(3)
  12. Basic Of Website Creation(6)
  13. Has Anyone Designed A Website For A Wow Guild?(0)


 



- Lo-Fi Version Time is now: 26th July 2008 - 09:21 AM