Gary Kuznitz

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromGary Kuznitz
ToMe
SubjectPlease help me convert XML to HTML
Date24 August 2005 07:29
AttachmentXML file
Hi,

I must be doing something wrong.  I would sure appreciate your help 
in figuring it out.

I am getting an XML file from a program called Pc Bug Doctor.  I 
don't see a way to list the file in Pc Bug Doctor so I would like to be 
able to read it easier.  
I have attached a sample of the XML file.  The name starts with 
FixedOnTuesday.
I have attached a sample of what I tried to put together with your 
insturctions at 
http://www.howtocreate.co.uk/jslibs/htmlhigh/importxml.html
The name starts with My Test
I created the file importxml.js and I had all the files in
C:\Scratch11\
Maybe I'm not using the correct example you have created.

Thank you very much for any help you may feel like giving.

Thank you,

Gary Kuznitz

PS:  I'd like to use this in Firefox 1.06 if that's ok.
FromMe
ToGary Kuznitz
SubjectRe: Please help me convert XML to HTML
Date25 August 2005 09:11
Attachmentscript that processes the XML file
Gary,

Hmm, either things got a little garbled on the way, or you are using the
wrong approach. You cannot embed the script inside the XML file, and you
need to write the function to process the XML data after it has beeen
loaded.

You need to use an HTML file, and run the script in the HTML file. It should
import the XML file, process it, and display its contents to you.

I have attached a small example, which imports your file, and displays it as
a collapsed list (using my nested list collapsing script), exactly
replicating your XML file structure. Obviously, you might want to do
something more useful than that, but this should be enough to get you
started.

Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
FromGary Kuznitz
ToMe
SubjectRe: Please help me convert XML to HTML
Date28 August 2005 01:03
Hi Mark,

That is absolutely perfect.  Thank you very much.  I had no idea it 
took so much coding to re-format an XML file.

Thanks a bunch,

Gary
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.