Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: Okay im stuck

date posted 4th May 2007 19:44

Hi,


> Need some help, im almost there but can't find the right combination of code
>
> Im trying to read the following XML
> http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml using ASP and output
> a rate based on a currency.
>
> Here is the code I have
>
> Dim URL, count, objXML, i, counter
> URL = "http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml"
> Set objXML = Server.CreateObject("Microsoft.XMLDOM")
> Set objLst = Server.CreateObject("Microsoft.XMLDOM")
> objXML.setProperty "ServerHTTPRequest", True
> objXML.async = False
> objXML.Load(URL)
> Set objLst = [EMAIL REMOVED]
> noOfHeadlines = objLst.length
> For i = 0 To (noOfHeadlines - 1)
> Response.Write(objLst.item(i).text & "")
> Next
> Set objLst = nothing
> Set objXML = nothing
> %>
>
> That shows all the currencies but I need to get the rate based on one of the
> currencies.
>
> Please help.
>

I don't know visual basic, but I'd be surprised if it's not one of:

objLst.item(i).attribute( 'rate' )

or

objLst.item(i).attributes( 'rate' )

or

objLst.item(i).getAttribute( 'rate' )

Graham


> Regards
> Sam Morgan
> WiredEyes Media / ServWise Advanced Hosting
> tel (Uk): +44 (0)20 7100 2178
> tel (Italy): +39 070 773 6543
> web : www.wiredeyes.com / www.servwise.com
> ----
> umop ap!sdn w,! aw dlaH
>
>
>
>
>



Messages by Day
May 31st 2007
May 30th 2007
May 29th 2007
May 28th 2007
May 27th 2007
May 26th 2007
May 25th 2007
May 24th 2007
May 23rd 2007
May 22nd 2007
May 21st 2007
May 20th 2007
May 19th 2007
May 18th 2007
May 17th 2007
May 16th 2007
May 15th 2007
May 14th 2007
May 13th 2007
May 12th 2007
May 11th 2007
May 10th 2007
May 9th 2007
May 8th 2007
May 7th 2007
May 6th 2007
May 5th 2007
May 4th 2007
May 3rd 2007
May 2nd 2007
May 1st 2007


Messages by Month
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000