
July 18th, 2002, 08:20 AM
|
|
Contributing User
|
|
Join Date: Jan 2001
Location: Philadelphia
Posts: 239
Time spent in forums: 15 m 20 sec
Reputation Power: 8
|
|
|
output multiple html from 1 xml file?
Im not sure if this is an efficient use of xml, but i figured i would try to store an entire website in 1 xml file, and parse that file into separate html pages that make up the site. This way i would only need to make edits to one file as opposed to several html pages. Is this feasable or am i wasting my time? Is using xml this way just overkill?
PHP Code:
<?xml version="1.0"?>
<website>
<page url="who.html" title="Who We Are">
<headline>This is the headline</headline>
<subhead>This is subhead</subhead>
<para>This is the paragraph text</para>
</page>
<page url="what.html" title="What we do">
<headline>This is the headline</headline>
<subhead>This is subhead</subhead>
<para>This is the paragraph text</para>
</page>
</website>
I'm looking for ways to incorporate xml into web development. If anyone can share the ways in which they use xml for this purpose i would greatly appreciate it.
thanks.
|