Je voudrais insérer un noeud entre 2 autres déjà existants. Dans mon script, je reçois une variable xml et je voudrais mettre à jour celle-ci.Powershell - Insérer un noeud entre deux autres
Ex:
<mapping ...>
<INSTANCE .. />
<INSTANCE .. />
<CONNECTOR .. />
<CONNECTOR .. />
</mapping>
le résultat devrait être:
<mapping ...>
<INSTANCE .. />
<INSTANCE .. />
<NEWINSERT .../>
<CONNECTOR .. />
<CONNECTOR .. />
</mapping>
Lorsque j'utilise un appendChild, l'insert est fait toujours fait à la fin ...
Une idée?
Merci!
Oui, mes quatre grandes applets de commande sont: Get-Help, Get-Command, Get-Member et Get-PSDrive. Les quatre clés du royaume PowerShell. :-) –