ASP and XML search string.

Results 1 to 2 of 2

Thread: ASP and XML search string.

  1. #1
    Join Date
    Dec 1969

    Default ASP and XML search string.

    I have to news source pulls that expire after 5 days. However sometimes one newsfeed doesn&#039;t update for a week or so. I would like to pull the newsfeed and depending on there being an &#060;item&#062; present, write the newsfeed to the page else to only write the one feed. So I have to includes using a response.write I will write the apporpriate include file: Both newsfeeds if the &#060;item&#062; exists in the first. And the second only if it does not. <BR><BR>How can I call up the newsfeed, read it for a string containing &#060;item&#062;

  2. #2
    Join Date
    Dec 1969

    Default If it's a valid XML..

    .. document, couldn&#039;t you just use SelectSingleNode:<BR><BR>Dim XmlNode<BR> XmlNode = XmlDoc.SelectSingleNode("/root/item")<BR> If Not XmlNode Is Nothing Then<BR> &#039;Item node existed.<BR> Else<BR> &#039;Item node did NOT exist.<BR> End If<BR> Set XmlNode = Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts