# Html & xml

**URL:** <https://forum.kirupa.com/t/html-xml/186704>\
**Category:** Uncategorized\
**Created:** [April 23, 2006, 8:46pm UTC](https://forum.kirupa.com/t/html-xml/186704 "2006-04-23T20:46:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fulci](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fulci](https://forum.kirupa.com/u/fulci)\
**Post date:** [April 23, 2006, 8:46pm UTC](https://forum.kirupa.com/t/html-xml/186704/1 "2006-04-23T20:46:51Z")

</div>

Hi all,

I hope iv got the right forum for this. i apologise if i havent. straight to the point; im designing a site where the plan is to have a news column on every page of the site. i dont want to change each page individually when updating the news column, but im not sure how to incorporate xml so when i change that, its changes all the pages at the same time.

can anyone point me in the right direction / tutorial, etc. any help would be greatly appreciated.

thanks again.

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [April 23, 2006, 8:50pm UTC](https://forum.kirupa.com/t/html-xml/186704/2 "2006-04-23T20:50:16Z")

</div>

Look into simple\_xml in PHP. Although it may be easier for somebody new to PHP to use mysql.

---

<div class="post-metadata">

**Author:** ![GPP](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@GPP](https://forum.kirupa.com/u/GPP)\
**Post date:** [April 23, 2006, 10:08pm UTC](https://forum.kirupa.com/t/html-xml/186704/3 "2006-04-23T22:08:40Z")

</div>

You could use iframes!

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [April 23, 2006, 10:31pm UTC](https://forum.kirupa.com/t/html-xml/186704/4 "2006-04-23T22:31:06Z")

</div>

Surely you’re kidding?

---

<div class="post-metadata">

**Author:** ![GPP](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@GPP](https://forum.kirupa.com/u/GPP)\
**Post date:** [April 23, 2006, 10:39pm UTC](https://forum.kirupa.com/t/html-xml/186704/5 "2006-04-23T22:39:07Z")

</div>

Yes.

---

<div class="post-metadata">

**Author:** ![mathew\_er](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mathew\_er](https://forum.kirupa.com/u/mathew_er)\
**Post date:** [April 24, 2006, 2:16am UTC](https://forum.kirupa.com/t/html-xml/186704/6 "2006-04-24T02:16:00Z")

</div>

Thus I havent used PHP for xml parsing there are many other ways how to do that. Use database as nokrev suggested or simply include e.g. news.php/txt/whatever to every page and in that file edit code of those news. IMHO using a database would be the best solution as you can display news randomly, sort them and handle larger number of news easily.

---

<div class="post-metadata">

**Author:** ![fulci](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fulci](https://forum.kirupa.com/u/fulci)\
**Post date:** [April 24, 2006, 4:45pm UTC](https://forum.kirupa.com/t/html-xml/186704/7 "2006-04-24T16:45:39Z")

</div>

thanks for all ur help guys! much appreciated. does anyone know of any links to tutorials which deal with my question?

---

<div class="post-metadata">

**Author:** ![teiz77](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/teiz77/32/771_2.png) [@teiz77](https://forum.kirupa.com/u/teiz77)\
**Post date:** [April 25, 2006, 7:30am UTC](https://forum.kirupa.com/t/html-xml/186704/8 "2006-04-25T07:30:48Z")

</div>

You can use XSL tot transform the XML into a human readable page, with styles and such. Here’s a tutorial: [http://www.w3schools.com/xsl/default.asp](http://www.w3schools.com/xsl/default.asp) No need for server side scripting.
