I need to add nodes or elements to an .XML file saved in a location on my PC and I do not know how to do it ...
for example in my file I have:
<Empleado>
<Nombre>
<PrimerNombre>Efrain</PrimerNombre>
<SegundoNombre>Emilio</SegundoNombre>
</Nombre>
</Empleado>
and I need to add you
<Apellido>
<PrimerApellido>Mejias</PrimerApellido>
<SegundoApellido>Castillo</SegundoApellido>
</Apellido>
to make it look like this:
<Empleado>
<Nombre>
<PrimerNombre>Efrain</PrimerNombre>
<SegundoNombre>Emilio</SegundoNombre>
</Nombre>
<Apellido>
<PrimerApellido>Mejias</PrimerApellido>
<SegundoApellido>Castillo</SegundoApellido>
</Apellido>
</Empleado>
How can I do this?