Advanced XPath Querying Techniques and IXMLSearch Strategies

Advanced XPath Querying Techniques and IXMLSearch Strategies

Robert Lv8

Advanced XPath Querying Techniques and IXMLSearch Strategies

Table of Contents

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

IXmlSearch

https://techidaily.com

Declaration

IXmlSearch: IBaseSearch

https://techidaily.com

Overview

This interface is meant to edit the XML file search.

https://techidaily.com

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.

https://techidaily.com

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”

Copy

See also

IXmlElementSearch

ISearchRegistryLocator

Did you find this page useful?

Please give it a rating:

Thanks!

Report a problem on this page

Information is incorrect or missing

Information is unclear or confusing

Something else

Can you tell us what’s wrong?

Send message

Also read:

  • Title: Advanced XPath Querying Techniques and IXMLSearch Strategies
  • Author: Robert
  • Created at : 2024-10-14 23:31:29
  • Updated at : 2024-10-17 05:04:29
  • Link: https://fox-triigers.techidaily.com/advanced-xpath-querying-techniques-and-ixmlsearch-strategies/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Advanced XPath Querying Techniques and IXMLSearch Strategies