By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,725 Members | 1,040 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,725 IT Pros & Developers. It's quick & easy.

Search in XML using XSLT

P: 4
I have following XML now i want to search XML using XSLT for Solution word which is in Title element.
I want to use same functionality which is provided by Like % operator in SQL queries

Expand|Select|Wrap|Line Numbers
  1. <casestudy>
  2.   <casestudyid>4000000187</casestudyid> 
  3.   <contenttype>Case Study</contenttype> 
  4.   <title>Semiconductor Solution Manufacturer Protects Confidential Communications</title> 
  5.   <summary><p>The innovative and interactive environment at Axcelis Technologies, Inc. depends on efficient communications. As a result, Microsoft® Exchange Server has long been a vital part of operations. When Axcelis considered a move to a Voice over IP (VoIP) system with support for Unified Messaging, it also saw an opportunity to consolidate messaging technologies. By moving to VoIP and Microsoft Exchange Server 2007, the company is now able to centrally store, access, and manage all messages (voice mail, e-mail, and more), enhancing overall communications and simplifying processes for users and IT. A long-time Trend Micro customer for messaging security, Axcelis counted on the long-standing Microsoft–Trend Micro partnership to continue securing the Exchange Server environment, ensure its availability, and protect the company’s proprietary information.</p></summary> 
  6.   <publisheddate>6/18/2007</publisheddate> 
  7. </caseStudy>
Jun 20 '07 #1
Share this Question
Share on Google+
1 Reply


Dököll
Expert 100+
P: 2,364
I have following XML now i want to search XML using XSLT for Solution word which is in Title element.
I want to use same functionality which is provided by Like % operator in SQL queries

Expand|Select|Wrap|Line Numbers
  1. <casestudy>
  2.   <casestudyid>4000000187</casestudyid> 
  3.   <contenttype>Case Study</contenttype> 
  4.   <title>Semiconductor Solution Manufacturer Protects Confidential Communications</title> 
  5.   <summary><p>The innovative and interactive environment at Axcelis Technologies, Inc. depends on efficient communications. As a result, Microsoft® Exchange Server has long been a vital part of operations. When Axcelis considered a move to a Voice over IP (VoIP) system with support for Unified Messaging, it also saw an opportunity to consolidate messaging technologies. By moving to VoIP and Microsoft Exchange Server 2007, the company is now able to centrally store, access, and manage all messages (voice mail, e-mail, and more), enhancing overall communications and simplifying processes for users and IT. A long-time Trend Micro customer for messaging security, Axcelis counted on the long-standing Microsoft–Trend Micro partnership to continue securing the Exchange Server environment, ensure its availability, and protect the company’s proprietary information.</p></summary> 
  6.   <publisheddate>6/18/2007</publisheddate> 
  7. </caseStudy>
Hello, kadykedar!

I picked up a wonderful tutorial for you. I did not find the % operator in there but this provides a way for you to skillfully query your XML data. Please give it a go:

http://www.w3schools.com/xquery/default.asp
Jun 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.