public void SetUpFixture()
		{
			doc = new WixDocument();
			prefixBeforeLoad = doc.WixNamespacePrefix;
			doc.LoadXml(GetWixXml());
			directory = doc.CreateWixElement("Directory");
			directory.OwnerDocument.DocumentElement.AppendChild(directory);
		}
Esempio n. 2
0
 /// <summary>
 /// Adds a new element to the specified parent.
 /// </summary>
 XmlElement AddElement(XmlElement parentElement, string name)
 {
     if (parentElement != null)
     {
         XmlElement element = document.CreateWixElement(name);
         return((XmlElement)parentElement.AppendChild(element));
     }
     return(null);
 }