XmlFile Properties

MSBuild Extension Pack

XmlFile Properties MSBuild Extension Pack Help 4.0.12.0

The XmlFile type exposes the following members.

Properties

  Name Description
Public property Element
Sets the element. For AddElement, if the element exists, it's InnerText / InnerXml will be updated
Public property Elements
Gets the elements selected using ReadElements
Public property File
Sets the file.
Public property InnerText
Sets the InnerText.
Public property InnerXml
Sets the InnerXml.
Public property InsertAfterXPath
Specifies the XPath to be used to control where a new element is added. The Xpath must resolve to single node.
Public property InsertBeforeXPath
Specifies the XPath to be used to control where a new element is added. The Xpath must resolve to single node.
Public property Key
Sets the Attribute key.
Public property Namespaces
TaskItems specifiying "Prefix" and "Uri" attributes for use with the specified XPath
Public property ParentElement
Sets the parent element.
Public property Prefix
Sets the Prefix used for an added element/attribute, prefix must exists in Namespaces.
Public property ReadChildrenToMetadata
When using ReadElements, specifies whether the first level child elements should be added as metadata. Child elements will override any read attributes of the same name. Default is false.
Public property RetryCount
Sets a value indicating how many times to retry saving the file, e.g. if files are temporarily locked. Default is 5. The retry occurs every 5 seconds.
Public property Value
Gets or Sets the Attribute key value. Also stores the result of any Read TaskActions
Public property XPath
Specifies the XPath to be used
Top
See Also

Reference