Edit XML with Powershell
I'm looking to edit an XML is Powershell.
Not sure how to get around this one.
My hang up seems to be releated to the duplication of the same element with no true Root Element.
Any help will be greatly appreciated.
I've been racking my head for a couple of days, and i can get close, but can't quite get done what i need.
This is what i have in the XML:
-ConfigData xmlns="http://xml.avaya.com/endpointAPI">
-version>1
-parameter>
-name>Language
-value>en
-/parameter>
-parameter>
-name>Server1
-value>1.1.1.1
-/parameter>
-/ConfigData>
This is what i need:
-ConfigData xmlns="http://xml.avaya.com/endpointAPI">
-version>1
-parameter>
-name>Language
-value>en
-/parameter>
-parameter>
-name>Server1
-value>1.1.1.1
-/parameter>
-parameter>
-name>Sever2
-value>1.1.1.2
-/parameter>
-/ConfigData>
My hang up seems to be releated to the duplication of the same element with no true Root Element.
Any help will be greatly appreciated.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
anonymous_9363
7 years ago