DSCResources/VE_XmlConfigKeyValue/VE_XmlConfigKeyValue.schema.mof

[ClassVersion("1.0.0.0"), FriendlyName("XmlConfigKeyValue")]
class VE_XmlConfigKeyValue : OMI_BaseResource
{
    [Key, Description("Path to XML configuration file)")] String Path;
    [Key, Description("XPath to XML parent element within the XML configuration file)")] String XPath;
    [Key, Description("Name of the element or attribute to set")] String Name;
    [Write, Description("Value of the element or attribute to set")] String Value;
    [Write, Description("Specifies the target is an attribute. Defaults to an element.")] Boolean IsAttribute;
    [Write, Description("Specifies the XML file should be created if it does not exist. Defaults to true.")] Boolean CreatePath;
    [Write, Description("Specifies the XML element/attribute XPath within the XML file should be created if it does not exist. Defaults to true.")] Boolean CreateXPath;
    [Write, Description("Specified whether to create or remove the value. Defaults to Present.", ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure;
};