#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Location
    Philadelphia
    Posts
    239
    Rep Power
    14

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    new york
    Posts
    84
    Rep Power
    13
    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

IMN logo majestic logo threadwatch logo seochat tools logo