I was trying to replace a placeholder in the header of my word document, but it fails when using ${someplaceholder}:
${someplaceholder}
XDocument xDoc = docOrigina