1. XQuery :
XQuery is the language for querying XML data. It is used to access information stored in XML format. It is used for fetching the information from database that is to be used in Web services like SoapUI, receiving data form database that is to be used with application integration, to generate summary reports, to retrieve relevant information from XML files. XQuery was designed by W3C and it first appeared in 2007.
2. XSLT :
XSLT stands for Extensible Stylesheet Language Transformation. It is a language that was designed to access tree structures. XSLT is used to transform XML data from one format to another automatically . When you apply XSLT to XML document you will get another XML document, HTML, text or any another document from technology. Its code is written inside the XML document. We can say that an XSLT document is similar to XML document.
Difference between XQuery and XSLT :
| S.No. | XQuery | XSLT |
|---|---|---|
| 1. | XQuery is program driven language. | XSLT is document-driven language. |
| 2. | It is not written in XML. | It is written in XML. |
| 3. | It is easy to learn. | It is difficult to learn. |
| 4. | It is declarative. | It is functional. |
| 5. | It is used only for simple transformations. | It is language that was designed to access tree structures. |
| 6. | It is not used to retrieve results in tree structure. | It is used to retrieve results in tree structure. |
| 7. | It is good to access XML database. | It is used to transform XML documents. |
| 8. | It is shorter, faster and more elegant for huge data jobs. | It may be difficult to maintain unless you carefully designed your stylesheet. |
| 9. | It is designed for retrieving and interpreting information according to the specification. | It is mainly designed for transforming the XML documents. |
Recommended Posts:
- XQuery | Installation and Example
- Displaying XML Using XSLT
- What is the difference between GUI and CUI?
- Difference between H.323 and SIP
- Difference between TDM and FDM
- Difference between CD-R and CD-RW
- Difference between H.323 and SIP
- Difference between SDN and NFV
- Difference between Tor and VPN
- Difference between DDL and TCL
- Difference Between DAS and SAN
- Difference Between SMO and SEO
- Difference between IoT and M2M
- Difference between USB 2.0 and USB 3.0
- Difference between BFS and DFS
- Difference Between DVD-R and DVD+R
- Difference between Hue and Pig
- Difference between GCC and G++
- Difference between DFA and NFA
- What is the difference between MEAN.js and MEAN.io?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

