This shows you the differences between two versions of the page.
xpath [2020/10/21 14:36] montse [How to Obtain Xpath in a XML document] |
xpath [2020/10/21 14:37] (current) montse |
||
---|---|---|---|
Line 34: | Line 34: | ||
|text() |Selects the elements with a specific text within |de[text()="mg"] |"//de//" elements with the string "//mg//" in the text field| | |text() |Selects the elements with a specific text within |de[text()="mg"] |"//de//" elements with the string "//mg//" in the text field| | ||
|[ / @ ] |Selects the elements that have specific children| / / de[mg/@attr1='nrw']|"//de//" elements which have a "//mg//" child with an attribute "//attr1//" equal to "//nrw//"| | |[ / @ ] |Selects the elements that have specific children| / / de[mg/@attr1='nrw']|"//de//" elements which have a "//mg//" child with an attribute "//attr1//" equal to "//nrw//"| | ||
+ | |||
+ | \\ | ||