CDATA via powershelle
HejJeg læser nedenstående xml fra fil. Jeg ønsker at elementet "payload" skal håndteres som cdata <payload> ><![CDATA[<Employee>...........
Hvordan indlæser jeg elementerne og ændre payload så jeg kan skrive til ny fil?
<?xml version="1.0"?>
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:emp="http://employee.xx.dk/">
<soapenv:Header/>
-<soapenv:Body>
-<emp:createEmployeeEvents>
-<occurrences>
-<occurrences>
<scope>any</scope>
<event>employee</event>
<action>Create</action>
-<payload>
-<employee>
<Initials/>
<Name_FirstName>Testmm..</Name_FirstName>
<Name_MiddleName/>
<Name_LastName/>
<SocialSecurityNumber/>
<NationalityID/>
<Address_Street/>
<Address_City/>
<Address_ZipPostalCode/>
<Address_CountryRegion/>
<LocationId/>
<Name/>
<OrganizationId>A001</OrganizationId>
<OrganizationName>Test afd</OrganizationName>
<HiredDate>2019-01-07</HiredDate>
<AccountNumber/>
<AccountRegNumber/>
</employee>
</payload>
</occurrences>
</occurrences>
</emp:createEmployeeEvents>
</soapenv:Body>
</soapenv:Envelope>