title: VSTO Word 2013 add in - Add Custom XML to document xml without it being visible on the page
body: <p>I am attempting to add a string into the XML of a word document so that the user can not see the string on their document page but another piece of software can scan the document and find it in the XML.</p>
  
  <p>I am using this information to write to the xml but it appears to be putting the string into a separate file called items1.xml.</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/bb608612(v=vs.100).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/bb608612(v=vs.100).aspx</a></p>
  
  <p>The code I am using is seen below:</p>
  
  <pre><code>private void AddCustomXmlPartToActiveDocument(Word.Document document)
  {
      string xmlString =
      "&lt;?xml version=\"1.0\" encoding=\"utf-8\" ?&gt;" +
      "&lt;employees xmlns=\"http://schemas.microsoft.com/vsto/samples\"&gt;" +
          "&lt;employee&gt;" +
              "&lt;name&gt;Karina Leal&lt;/name&gt;" +
              "&lt;hireDate&gt;1999-04-01&lt;/hireDate&gt;" +
              "&lt;title&gt;Manager&lt;/title&gt;" +
          "&lt;/employee&gt;" +
      "&lt;/employees&gt;";
  
  Office.CustomXMLPart employeeXMLPart = document.CustomXMLParts.Add(xmlString);
  </code></pre>
  
  <p>}</p>
  
  <p>How can I write a specified piece of text to the XML file where the page contents are stored?</p>