Dear,
I have a htm file created with Word.
This file contains a table (see attached). It's in french. no worry. the purpose is to replace [fields] to real values.
To achieve this, my code is this :
$Datas = (Select-Xml -Path $strFullFile -XPath //body/h4).node.InnerText}
$datas = $Datas -replace "[EndOfContract]", $DateFrom
$datas = $Datas -replace "[TypeOfJcDept]", $strMailboxType
$datas = $Datas -replace "[JcDEPTName]", $strMailboxAlias
en so forth
this does not seems to work as the code seems to completely destroy the htm file.
If I analyze te situation if each letter of [EndOfCOntract] with is seen on the file is replaced. I was expecting the ONLY [EndOFContrat] Beeing replaced by $dateFrom.
so seems that the command is totally wrong....
what else?
any idea? other method to achieve same result?
Many tks.
thanks