![]() |
The XPath Expression is an expression that is used to select nodes in the XML element. These expressions are similar to the path expression in our system files path. XSLT performs transformation based on this expression. Following is the table of some useful expressions to select any node in the XML file:
Syntax: "XPath_Expression"
Attributes: It is an XPath expression that is written inside the Double inverted commas. Example 1: In this, we will select all the children of the student node using the expression parent/child and select the attribute of a node using @ Expression. Save the file as mentioned and view the XSL file in the web browser. XML
XML
Output: ![]() expression Example 2: In this example, we will select the current node using [. ] and select start from the current node using / expression. Save the file as mentioned and view it in a web browser. XML
XML
Output: ![]() expression |
Reffered: https://www.geeksforgeeks.org
Data Formats |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 15 |