Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
XML Parsing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XML Parsing



Morning All and Merry Xmas

I have the following XML to parse in a widget:

<?xml version="1.0" encoding="utf-8"?> <bigpondusage username="email@hidden "> <general> <account> <holder>Mr Kevin Rudd</holder> <number>BP123456789</number> </account> <plan> <type>BigPond ADSL Liberty* (25GB) 8000/384</type> <period>Monthly</period> <fee unit="AUD $">99.95</fee> </plan> </general> <current> <usage> <total unit="MB">5594</total> <downloaded unit="MB">5223.81</downloaded> <uploaded unit="MB">370.2</uploaded> <free unit="MB">41.47</free> <over unit="MB">0</over> </usage> <allowance> <value unit="MB">25000</ value> <description>25GB*, then slowed</description> </allowance> <period> <start>4/12/2007 12:00:00 AM</start> <end>4/01/2008 12:00:00 AM</end> <description>04 Dec 2007 - 04 Jan 2008</description> </ period> <delay unit="Hour" description="Usage is up to date to within 4 hours">4</delay> <shaping shaped="False" /> </current></bigpondusage>
I am successfully getting the data I need out by substringing as I've not yet been smart enough to figure out the Javascript XML parser. Not Apples fault - just me, I am sure I do not qualify as a programmer.
Any help with a short relevant example would be appreciated.
Cheers
Geoff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Re: javascript console weirdness (From: John Louch <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.