|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 | |
|
Don't tread on me
|
Help parsing xml
ok, so I have a webserver, I use coolmon to collect stats from server usage, IE cpu%, memory, diusk space, threads, blah, blah,
Coolmon saves all this data to an xml file, what I want to do is, have it parsed out to an html page so I can have it viewed in a nice htnl format, rather than xml....(puzzle) Here is the xml: Quote:
__________________
Miami, flee it like a native. Last edited by cobra; 08-12-2002 at 03:51 PM. |
|
|
|
|
|
|
#2 |
|
Member (10 bit)
|
Do you have access to a web server? Upload that xml file to it and we can look at the source from there. I've only used xml a limited amount, but why can't you just use that file, and structure it like the way you want?
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
You need to learn a programming language to parse XML, since you have a web server, I think PHP is a good choice, you can use PHP to parse the XML page and make an easy to read HTML page.
BTW, I don't think that the XML page is that hard to read. |
|
|
|
|
|
#4 |
|
Don't tread on me
|
I got it
here's a pic of it in action. Auto refreshes every 3 seconds. |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
nice, how did you create it?
|
|
|
|
|
|
#6 |
|
Don't tread on me
|
I will post the xml and html when I am at work tomorrow.
|
|
|
|
|
|
#7 |
|
Don't tread on me
|
I tried posting with the "code" tag, but it keeps "formatting it,
why oh why does it always do this to me? oh well...vb is suXor anyway Last edited by cobra; 08-27-2002 at 09:05 AM. |
|
|
|
|
|
#8 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Because it contains HTMl-like tags, use [ PHP ] instead.
|
|
|
|
|
|
#9 |
|
Don't tread on me
|
html code:
Code:
Code:
|
|
|
|
|
|
#10 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Hmm, I didn't know that JavaScript can parse XML, nice idea
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|