cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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 Element

Additional Information

http://www.w3schools.com/xsl/xpath_syntax.asp
Labels (1)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Jun 09, 2018 02:09 AM
Updated by: