IT Nursery
What XPath can I use to select any category with a name attribute specified and any child node author with the value specified. I’ve tried different variations of the...
  • June 1, 2022
  • 0 Comments
IT Nursery
Using a XPath query how do you find if a node (tag) exists at all? For example if I needed to make sure a website page has the correct...
  • May 30, 2022
  • 0 Comments
IT Nursery
I have following XML. <?xml version="1.0" encoding="UTF-8"?> <Employees> <Employee id="3"> <age>40</age> <name>Tom</name> <gender>Male</gender> <role>Manager</role> </Employee> <Employee id="4"> <age>25</age> <name>Meghna</name> <gender>Female</gender> <role>Manager</role> </Employee> </Employees> I want to select Employee element...
  • May 27, 2022
  • 0 Comments
I need get the parent node for child node title 50 At the moment I am using only //*[title="50"] How could I get its parent? Result should be the...
  • May 25, 2022
  • 0 Comments
Trying to select an element based on the value of one of it’s childrens childrens Thinking the following but not working, appreciate any help, thanks ./book[/author/name="John"] or ./book[/author/name text()...
  • May 23, 2022
  • 0 Comments
When searching for items in complex JSON arrays and hashes, like: [ { "id": 1, "name": "One", "objects": [ { "id": 1, "name": "Response 1", "objects": [ // etc....
  • May 23, 2022
  • 0 Comments