Filter an XML doc

Results 1 to 2 of 2

Thread: Filter an XML doc

  1. #1
    Join Date
    Dec 1969

    Default Filter an XML doc

    hi,<BR>i am using &#060;xsl:for-each select="RESULT[@DEPARTURE_AIRPORT=&#039;London&#039;]"&#062; to filter the XML to get only datas for London airport where DEPARTURE_AIRPORT is an attribute <BR>of RESULT<BR>How can i do this if i need london and gatwick and destination =&#039;spain&#039; where &#039;destination&#039; is another attribute <BR><BR>Basically to filter using an &#039;OR&#039; condition.<BR><BR>Can u please help me regarding this.<BR>Many thankz in advance..<BR>Tony

  2. #2
    Join Date
    Dec 1969

    Default RE: Filter an XML doc

    Look up an XPATH tutorial, in particular xsl:when and xsl:if.

Posting Permissions

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