IXmlSearch
Declaration
IXmlSearch: IBaseSearch
Overview
This interface is meant to edit the XML file search.
Properties
String FilePath - Gets or sets the search path and the XML filename on which the search operation will be executed.
String RootElement - Gets the expected root element of the XML file.
Example
$advinst = new-object -com AdvancedInstaller
$prj = $advinst.CreateProjectS("architect")
$xmlSearch.RootElement.ElementName = "configuration"
$xmlConfigSections = $xmlSearch.RootElement.NewElement("configSections")
$sectionsHasChildren = $xmlConfigSections.NewLocator()
$sectionsHasChildren.Type = "ElementHasChildren"
$sectionsHasChildren.PropertyName = "SECTIONS_HAS_CHILDREN_PROP"
$sectionElem = $xmlConfigSections.NewElement("section")
$sectionHasAttribute = $sectionElem.NewLocator()
$sectionHasAttribute.Type = "AttributeName"
$sectionHasAttribute.PropertyName = "HAS_NAME_ATTRIBUTE"
$sectionHasAttribute.Value = "name"