|
-
May 19th, 2008, 05:36 AM
#1
Thread Starter
Lively Member
[RESOLVED] JScript & XML - Data Breakup
Hi All
I trying to write a Vista Gadget which will retrieve internet usage from a XML feed. The gadget is now retrieving the data and placing it into a variable. How would I go about breaking the following example up?
XML Feed Return:
ADSL 2 40GB - $79.00 804012.621.4814.5028.712008-04-30T00:00:002008-05-30T00:00:00
Formatted:
ADSL 2 40GB
$79.00
80
40
12.62
1.48
14.50
28.71
Any examples would be much appreciated
-
May 19th, 2008, 01:22 PM
#2
Re: JScript & XML - Data Breakup
Why not parse it as XML rather than as a string if you're receiving it from an XML feed? You can parse it on a per item basis, get the various nodes and their values out and then format it.
-
May 19th, 2008, 11:47 PM
#3
Thread Starter
Lively Member
Re: JScript & XML - Data Breakup
Cheers mendhak. I parsed it as XML and was able to get the values from each node
-
May 20th, 2008, 01:37 AM
#4
Re: [RESOLVED] JScript & XML - Data Breakup
Good work, if you're feeling generous, share your code so that future searchers can use it too. Your code for the vista gadget could be a good codebank submission if you have instructions for setting up the 'shell' for the gadget as well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|