I am using BaseX to store XML data with multiple nodes in the following format:
<root>
<item id="65816" parent_id="45761" type="test">
<content>
<name>Name of my node on the tree</name>
</content>
</item>
</root>
The code above is essentially one typical node under 'root'. Now, I am trying to delete a node based on the 'id' property of the 'Item' object.
I looked at the documentation on BaseX.org but that does not explicitly tell me how to deal with nodes which have IDs linked to it. I am trying to something like this:
XQUERY delete node //root/item.id="65816"
Note: The above line doesn't work. That is just to give an idea of what I am trying to achieve.