Doc Example:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Identity PUBLIC "point.dtd" "point.dtd"[]>
<Identity created="1525465321820" name="Onboarding - GUI - External">
<Attributes>
<Map>
<entry key="displayName" value="Onboarding - GUI " />
<entry key="firstname" value="Z Orphaned ID" />
</Attributes>
</Identity>
I can assign values to displayName and firstname no problem like so:
[string] $displayvalue = $xmldata.Identity.Attributes.Map.entry[0].value
[string] $firstname = $xmldata.Identity.Attributes.Map.entry[1].value
and than save.
$myFile = 'C:\somefile.xml'
$xmldata.Save($myFile)
BUT when I try to do the same for name :
[string] $xmldata.Identity.Name = "TEST"
I got an error :
The property 'Name' cannot be found on this object. Verify that the property exists and can be set.
Thanks