本文整理汇总了C#中ICSharpCode.WixBinding.WixDocument.SelectSingleNode方法的典型用法代码示例。如果您正苦于以下问题:C# WixDocument.SelectSingleNode方法的具体用法?C# WixDocument.SelectSingleNode怎么用?C# WixDocument.SelectSingleNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICSharpCode.WixBinding.WixDocument
的用法示例。
在下文中一共展示了WixDocument.SelectSingleNode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public void Init()
{
doc = new WixDocument();
doc.FileName = @"C:\Projects\Setup\Setup.wxs";
doc.LoadXml(GetWixXml());
component = (WixComponentElement)doc.SelectSingleNode("//w:Component", new WixNamespaceManager(doc.NameTable));
}
示例2: SetUpFixture
public void SetUpFixture()
{
WixDocument doc = new WixDocument();
doc.LoadXml(GetWixXml());
dialogElement = (WixDialogElement)doc.SelectSingleNode("//w:Dialog", new WixNamespaceManager(doc.NameTable));
dialogElement.SetAttribute("Id", "id");
dialogElement.SetAttribute("Title", "title");
XmlElement controlElement = doc.CreateElement("Control", WixNamespaceManager.Namespace);
dialogElement.AppendChild(controlElement);
}
示例3: Init
public void Init()
{
doc = new WixDocument();
doc.FileName = @"C:\Projects\Setup\Files.wxs";
doc.LoadXml(GetWixXml());
XmlElement productElement = doc.GetProduct();
WixXmlAttributeCollection attributes = wixSchema.GetAttributes(productElement);
productIdAttribute = attributes["Id"];
productUpgradeCodeAttribute = attributes["UpgradeCode"];
XmlElement componentElement = (XmlElement)doc.SelectSingleNode("//w:Component", new WixNamespaceManager(doc.NameTable));
attributes = wixSchema.GetAttributes(componentElement);
componentGuidAttribute = attributes["Guid"];
componentKeyPathAttribute = attributes["KeyPath"];
XmlElement fileElement = (XmlElement)doc.SelectSingleNode("//w:File", new WixNamespaceManager(doc.NameTable));
attributes = wixSchema.GetAttributes(fileElement);
fileSourceAttribute = attributes["Source"];
fileSrcAttribute = attributes["src"];
}