Parse data from an external html file and extract certain info, then write

  • Thread starter Thread starter Side Guy
  • Start date Start date
S

Side Guy

Guest
it to a javascript file using .asp? I would like to know how to parse and extract about 15 characters from an XML file that isn't strictly XML - it's an XML that has well formed HTML tags.

It needs to find:

1X_EUR.htm">1 EUR =

then find:

</a>

and extract everything in between, which will be something like:

AED (4.845119)

Then i need to remove the brackets and write the data to a javascript file like this:

function Currency(){this.rates={'AUD':1.918420,'CAD':1.656700,'EUR':1.000000,'GBP':0.928225,'NZD':2.33024,'USD':1.32670};

I need to know how to do this using .asp. I am a web designer, not a coder - and i'd like some info on how i would achieve this.

Your help, advice, pointers are really appreciated.
 
Back
Top