6 Replies Latest reply on Mar 10, 2011 2:11 PM by saisri2k2

    HTTPService question - help!!!

    Mark Embrey Level 1

      I'm trying to learn how to properly use Spark HTTPService - I'm still pretty much a newb -

       

      So far I have:

       

             
              <s:HTTPService id="sod"
                  url="http://www.somewebsite.edu/folder/sod.php"
                  resultFormat="e4x"
                  result="myParsingFunction()" 
                  />

       

      I want to parse out a particular sub-section of the html for this site and retrieve only the portion which falls within the:

       

      /html/body/div[4]/div[2]/div/div[2]

       

      section of the page's html.

       

      I'm pretty sure I need to create a function ( "myParsingFunction()" ) to take the result and find the section of the page that falls within the aforementioned subset of the page's html and then strip out all of the html _outside_ the bounds of this section of the page, but I really don't know how to do this.

       

       

      Can anybody steer me in the right direction?

       

      thanks!

       

      Mark

       

      P.S. - extra points for maintaining styling within result!