Configuring XML Structure: Understanding the Elements Configuration Pane

Configuring XML Structure: Understanding the Elements Configuration Pane

Michael Lv8

Configuring XML Structure: Understanding the Elements Configuration Pane

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.

XML Element Settings Tab

Element Settings

https://techidaily.com

Text

Specify the element or comment text.

NoteThis string is of Formatted Type and can be edited using Smart Edit Control . Also you can localize it.

https://techidaily.com

For example, if you need to insert in the XML file an element in the form text content, set the Text for the “node” element to “text content”.

ImportantWhen an XML element is in update mode, the text content is also updated. However, when the XML element being updated has mixed content with several text regions, the new text specified here will beappended to the element content.

https://techidaily.com

Install

In this section you can specify the installation behavior of the XML element.

Create element if it doesn’t already exist

If a matching element is not found and this option is enabled, the element will be created in the desired location, under the specified parent.

If the element is found:

  • Update:
    • First matching
    • If several matching elements are found and this option is enabled, only the first occurrence will be updated.
    • All matching
    • If several matching elements are found and this option is enabled, all the occurrences are updated with the same changes.
  • Add as new sibling
  • If matching elements are found and this option is enabled, the element will be added as a detected node’s sibling.

TipIf none of the above options are set, the element is ignored, meaning that is neither created nor updated. You can choose to use these settings if you need to navigate in an XML tree in order to reach a specific node. By using this method you can reach a sibling node without modifying the parent node(current node).

Warning!In order to enhance the localizing precision of matching elements, you can use identifier attributes to pinpoint an exact element from the file, in case several nodes have the same ancestors.

https://techidaily.com

For example, if the target XML file looks like:

Copy

and you want to update the element:

Copy

by changing the value of “PARAM” to “false”, in order to identify the desired “OPTION” node from the file, you can specify theattribute “name” with the value “ParseINIFiles” (for the “OPTION” element) as being anidentifier attribute.

TipYou can specify several attributes as identifiers for an XML element.

Caution!XML Comments are always inserted, and never_updated_.

Condition

The condition to create this element on install. Edit this field using Smart Condition Edit Control .

https://techidaily.com

Uninstall

Remove element on uninstall

If it exists, the element will be removed when the attached component is uninstalled.

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: Configuring XML Structure: Understanding the Elements Configuration Pane
  • Author: Michael
  • Created at : 2024-10-23 17:25:01
  • Updated at : 2024-10-28 16:10:25
  • Link: https://fox-where.techidaily.com/configuring-xml-structure-understanding-the-elements-configuration-pane/
  • License: This work is licensed under CC BY-NC-SA 4.0.