IXmlSearch Copy link to this sectionLink to this section copied!

DeclarationCopy link to this sectionLink to this section copied!

IXmlSearch: IBaseSearch

OverviewCopy link to this sectionLink to this section copied!

This interface is meant to edit the XML file search.

PropertiesCopy link to this sectionLink to this section copied!

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.

ExampleCopy link to this sectionLink to this section copied!

$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"