XmlFile Properties | MSBuild Extension Pack Help 4.0.12.0 |
The XmlFile type exposes the following members.
Properties
Name | Description | |
---|---|---|
Element |
Sets the element. For AddElement, if the element exists, it's InnerText / InnerXml will be updated
|
|
Elements |
Gets the elements selected using ReadElements
|
|
File |
Sets the file.
|
|
InnerText |
Sets the InnerText.
|
|
InnerXml |
Sets the InnerXml.
|
|
InsertAfterXPath |
Specifies the XPath to be used to control where a new element is added. The Xpath must resolve to single node.
|
|
InsertBeforeXPath |
Specifies the XPath to be used to control where a new element is added. The Xpath must resolve to single node.
|
|
Key |
Sets the Attribute key.
|
|
Namespaces |
TaskItems specifiying "Prefix" and "Uri" attributes for use with the specified XPath
|
|
ParentElement |
Sets the parent element.
|
|
Prefix |
Sets the Prefix used for an added element/attribute, prefix must exists in Namespaces.
|
|
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.
|
|
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.
|
|
Value |
Gets or Sets the Attribute key value. Also stores the result of any Read TaskActions
|
|
XPath |
Specifies the XPath to be used
|
See Also