I need to delete specific employee node and also its child node based on the value of id. For example, here I need to delete employee tag with id="2".

<company>
    <employee>
        <id>1</id>
        <name>sa</name>
    </employee>
    <employee>
        <id>2</id>
        <name>ssa</name>
    </employee>
</company>
Edit
Report