IBM developerWorks
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old July 18th, 2002, 08:20 AM
mikeShank mikeShank is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Philadelphia
Posts: 239 mikeShank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 20 sec
Reputation Power: 8
Send a message via AIM to mikeShank
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.

Reply With Quote
  #2  
Old July 18th, 2002, 03:02 PM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
it's probably not a good idea...
but i don't see any reason why this can't be done..

i'm not an expert in this area, just my initial thoughts....

i have asked the same question:
what are some other ways of incorporating xml into my site....
perhaps we nee to start a thread on this... think i'll do it (aside from an xml db)


justin.dago

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > output multiple html from 1 xml file?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway