Results 1 to 4 of 4

Thread: [RESOLVED] JScript & XML - Data Breakup

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    111

    Resolved [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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    111

    Resolved Re: JScript & XML - Data Breakup

    Cheers mendhak. I parsed it as XML and was able to get the values from each node

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width