10 Replies Latest reply on Jan 23, 2007 1:45 PM by DettCom

    How can I get a URL from a bunch of code?

    DettCom
      Hello,

      I am performing a cfhttp (get) and it is returning the contents of a webpage. At the top contains the following code in the <head> tag:

      <head><title>You have new Picture Mail!</title>
      <!-- lsPictureMail-Share-aEAr4d7TmUP9t8s8L08x-comment
      &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF&#45;8&quot;?&gt;
      &lt;shareMessage&gt;
      &lt;messageContents type=&quot;PICTURE&quot;&gt;
      &lt;messageText&gt;This is a test&lt;/messageText&gt;
      &lt;mediaItems&gt;
      &lt;mediaItem id=&quot;1&quot;&gt;
      &lt;title&gt;&lt;/title&gt;
      &amp;lt;url&amp;gt; http://yyyyyyyy.xxxxxxx.com/getMMBOXMessageMedia?id=Xw1004H8sLv6S3x76lVPYmsnJP2O20g3G1ktos 3o40eowQu2ISQurwmk5gW%2FZUWGmojEaNnHPwvp%0AeQvD0picW27ax3ydBrpRXHd8C%2BjWdodHSDGRx6c3XwebI Tvfl1HKgeiA%2BR%2FmkgvO3ur95DU%2Bmg%3D%3D%0A&amp;lt;/url&amp;gt;

      &lt;urlExpiration&gt;2007&#45;01&#45;29T19:44:23Z&lt;/urlExpiration&gt;
      &lt;/mediaItem&gt;
      &lt;/mediaItems&gt;
      &lt;/messageContents&gt;
      &lt;/shareMessage&gt;

      -->
      <!-- lsPictureMail-UserInfo-aEAr4d7TmUP9t8s8L08x-comment
      &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF&#45;8&quot;?&gt;
      &lt;UserInfo timestamp=&quot;2007&#45;01&#45;22T19:44:23.414+00:00&quot; originating_from_address=&quot;test@pm.sprint.com&quot;&gt;&lt;credential name=&quot;MDN&quot;&gt;3333333333&lt;/credential&gt;&lt;/UserInfo&gt;
      -->
      </head>

      What I need to do is extract items like the URL, subject and originating_from_address. Would anyone suggest the best way to do this????

      Thanks!!