This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Knowledge Base
- :
- Target XML elements with specific attributes.
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Target XML elements with specific attributes.
Target XML elements with specific attributes.
Summary
How to Target XML elements with specific attributes using XML File Changes.Synopsis
If you are using XML file changes to modify an XML file and want to target a specific element with specific attributes, here is the syntax to use in the Element Name field.ELEMENTNAME[@ATTRIBUTE="VALUE"]
For multiple attributes use:
ELEMENTNAME[@ATTRIBUTE1="VALUE1" and @ATTRIBUTE2="VALUE2"]
Discussion
This allows you to target specific XML elements with specific attributes.You can then change the attributes in the section that says "Specify attributes for this element below."
This is essentially using xpath syntax to select elements.
Related KB Articles
Adding an Attribute to an ElementAdditional Information
http://www.w3schools.com/xsl/xpath_syntax.asp
No ratings