Nicee danke dir,
$quellpfad ="C:\Users\MeinName\Desktop\Experiment,Test"
$XmlData = get-ChildItem $quellpfad "*.xml" -Recurse
foreach ($xmlobject in $XmlData) {
[xml]$xml = get-content $xmlobject.Fullname
foreach ($Feature in ($xml.BMECAT.T_NEW_CATALOG.PRODUCT.PRODUCT_FEATURES).FEATURE ) {
if ($Feature.FVALUE -match ";") {
$SplittedFVALUE = ($Feature.FVALUE -split ';').trim()
foreach ($Value in $SplittedFVALUE) {
$child = $xml.CreateNode("element", "FVALUE", " ")
$child.InnerText = $Value
$Feature.AppendChild($child)
}
$ItemToRemove = $Feature.SelectSingleNode('FVALUE')
$Feature.RemoveChild($ItemToRemove)
}
}
$xml.Save($xmlobject.Fullname)
}
So funktionierts :)))))))) bis jetzt.