newbie: ASP - XML

Discussion in 'C#' started by wappmanb, Dec 7, 2007.

  1. #1
    I am not very familar with ASP so I need help.

    I want to be a display data from a remote XML file or RSS feed.

    here are the urls of the data:
    XML:http://newweb.erh.noaa.gov/ahps2/xml/harp1_hgirg.xml
    RSS:http://www.weather.gov/ahps/rss/gauge.php?wfo=ctp&lid=harp1

    I only want the most recent data from the file for the <observed.datum>

    For instance I want to be able to disply on my webpage(s) everytime that the page is loaded or rereshed the following:

    <datum>
    <valid timezone="UTC">2007-12-07T15:00:00-00:00</valid>
    <primary name="Stage" units="ft">4.99</primary>
    <secondary name="Flow" units="kcfs">34.8</secondary>
    <pedts>HGIRG</pedts>
    </datum>


    Of course not in that format...
    I need Time of observation, stage number, and flow number.


    Thanks for your assistance.

    Bruce
     
    wappmanb, Dec 7, 2007 IP
  2. Forrest

    Forrest Peon

    Messages:
    500
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you using asp, or asp.net? It's actually a pretty big difference...

    Your best bet is to use the XML DOM, which is going to be either MSXML or XmlDocument, depending on which framework you're using.
     
    Forrest, Dec 7, 2007 IP
  3. wappmanb

    wappmanb Peon

    Messages:
    82
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think it is ASP and NOT ASP.net

    I do not have access to the server now but with a few scripts I have found I think I was able to get some of the data with XmlDocument in the code.



    If this is too complicated to answer on the forum then point me to a developer so I can see how much it would cost to create this
     
    wappmanb, Dec 8, 2007 IP