XmlConfig Element
- Description
-
Adds or removes .xml file entries. If you use the XmlConfig element you must link with wixca.wixlib because it requires the XmlConfig custom actions.
- Windows Installer references
- None
- Parents
- Component, XmlConfig
- Inner Text (xs:string)
- This element may have inner text.
- Children
- Sequence (min: 1, max: 1)
- XmlConfig (min: 0, max: unbounded)
- Attributes
-
Name Type Description Required Id String Identifier for xml file modification. Yes Action Enumeration This attribute's value should be one of the following: - create
- delete
ElementPath String The XPath of the parent element being modified. Note that this is a formatted field and therefore, square brackets in the XPath must be escaped. ElementPath can also be set to the Id of another XmlConfig. In this case, the 'Action' 'Node' and 'On' attributes must be left unspecified. Yes File String Path of the .xml file to configure. Yes Name String Name of XML node to set/add to the specified element. Not setting this attribute causes the element's text value to be set. Otherwise this specified the attribute name that is set. Node Enumeration This attribute's value should be one of the following: - element
- value
- document
On Enumeration This attribute's value should be one of the following: - install
- uninstall
Sequence Integer Specifies the order in which the modification is to be attempted on the XML file. It is important to ensure that new elements are created before you attempt to add an attribute to them. Value String The value to be written. See the Formatted topic for information about how to escape square brackets in the value. VerifyPath String The XPath to the element being modified. This is required for 'delete' actions. For 'create' actions, VerifyPath is used to decide if the element already exists. - See Also
- Wix Schema