Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Fetch & Read XML Data into HTML File?

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 9/8/2008 3:09:00 PM

Richard In Va. wrote:
> Would anyone know how I can fetch and read xml data to display in a html 
> file?
> 
> I'm building a local (unpublished) webpage to be a personal homepage on my 
> PC.  When I open/refresh the html file, I would like it to fetch an xml file 
> type <?xml version="1.0" encoding="ISO-8859-1" ?> from the internet and 
> parse/read some of the data to display in the webpage using standard 
> html/ccs.

You could build a HTA (HTML application) on Windows and then use 
JavaScript and MSXML to load and parse the XML document.
I suggest using a HTA instead of a normal web page as with normal web 
pages rendered in a browser you are not allowed to access domains other 
than the one your HTML document has been loaded from.
HTAs are documented here:
http://msdn.microsoft.com/en-us/library/ms536471(vs.85).aspx

MSXML documentation is here:
http://msdn.microsoft.com/en-us/library/ms763742(VS.85).aspx

If you need help writing JavaScript using MSXML to parse your XML 
document then post the URL of the XML and tell us which elements and/or 
attributes you want to read.

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent