I'm doing a simple Java DOM app for car renting. I have a <car> tag that contains <id> tag, I'm trying to make a method that deletes the <car> tag by specifying the value of the <id> tag. I've tried thinking of a solution and looked at similar questions but haven't figured it out. Here's structure of my XML document:
<parking>
<car>
    <id>1</id>
</car>
<car>
    <id>2</id>
</car>
<car>
    <id>3</id>
</car>
<car>
    <id>4</id>
</car></parking>