# Load XML data into an HTML document

**URL:** <https://forum.kirupa.com/t/load-xml-data-into-an-html-document/64061>\
**Category:** web dev\
**Created:** [September 13, 2004, 12:05am UTC](https://forum.kirupa.com/t/load-xml-data-into-an-html-document/64061 "2004-09-13T00:05:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IveBeenDuped](https://avatars.discourse-cdn.com/v4/letter/i/b19c9b/32.png) [@IveBeenDuped](https://forum.kirupa.com/u/IveBeenDuped)\
**Post date:** [September 13, 2004, 12:05am UTC](https://forum.kirupa.com/t/load-xml-data-into-an-html-document/64061/1 "2004-09-13T00:05:59Z")

</div>

Hi

Great site you have here. I was wondering if anyone knew how I could load xml data into an html document.

Specifically I just want to have an xml file like

\<prices\>  
\<item name=“bluetoque” action="$19.99"\>\</item\>  
\<item name=“orangeshirt” action="$15.99"\>\</item\>  
\<item name=“redhat” action="$22.99"\>\</item\>  
\</prices\>

and be able to load the prices (actual number) into an html document by using the item name. That way I could just change prices on the xml document for updates.

If anybody knows how to do this I would be very greatful for any help as I’m a noobie to all of this stuff.

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 12:14am UTC](https://forum.kirupa.com/t/load-xml-data-into-an-html-document/64061/2 "2004-09-13T00:14:46Z")

</div>

what serverside language are you using?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 12:23am UTC](https://forum.kirupa.com/t/load-xml-data-into-an-html-document/64061/3 "2004-09-13T00:23:24Z")

</div>

Hello again. Thank you for responding.

I’m really new to this and I thought that I could use javascript to load the information but I’m really unsure what I should do. All, I need is an external document that just holds the prices. I’m sure there are lot’s of ways to do this sort of thing but if you could just humour me I’d be very greatful.

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 12:56am UTC](https://forum.kirupa.com/t/load-xml-data-into-an-html-document/64061/4 "2004-09-13T00:56:10Z")

</div>

[http://www.quirksmode.org/dom/importxml.html](http://www.quirksmode.org/dom/importxml.html)
