Running Policy Server and having to modify all the Agent ACO, and projecting to use XPSExplorer to make the modification after having downloaded an .xml file from this tool.
How to apply the XML file to make the changes.
Put all the ACO which needs to be modified in an .xml file, modify the values that need to be changed, and import the data with XPSImport.
Here's a full sample of changing the ACO name myACO to myACO-1:
>>>
# XPSExplorer
Enter Option (#,F,B,X,P, or Q): 108
Enter Option (ALNFSQ): S
7-CA.SM::AgentConfig@21-000213d9-52e3-251g-8s56-055548ssc555sd
(I) Name : "myACO"
Enter Option (#, +, -, B, X, Y, M, Q): 7
------------------------- Object Meta Data ------------------------
XID: CA.SM::AgentConfig@21-000213d9-52e3-251g-8s56-055548ssc555sd
[...omitted for brevity...]
X - Add to XCart (use Mode: DEFAULT)
------------------------------------
Enter Option (MJLRPWDAX+Q): X
Enter Option (MJLRPWDAXQ): Q
Enter Option (#, +, -, B, X, Y, M, Q): Q
Enter Option (ALNFSQ): Q
X - XCart Management (1 item(s)) - UNSAVED
------------------------------------------
Enter Option (#,F,B,X,P, or Q): X
There is 1 object in the cart
1-CA.SM::AgentConfig@21-000213d9-52e3-251g-8s56-055548ssc555sd
Import mode: DEFAULT
(I) Name : "myACO"
Enter Option (L,M,N,T,A,O,R,D,Z or Q): R
Enter Option (Object (enter to abandon)): 1
There is 1 object in the cart
1-CA.SM::AgentConfig@21-000213d9-52e3-251g-8s56-055548ssc555sd
Import mode: REPLACE
(I) Name : "myACO"
Enter Option (L,M,N,T,A,O,R,D,Z or Q): N
Path to save:/opt/CA/siteminder/xcart.xml
S - Save cart to file (/opt/CA/siteminder/xcart.xml)
Enter Option (L.S,M,N,T,A,O,R,D,Z or Q): S
Enter Option (L.S,M,N,T,A,O,R,D,Z or Q): Q
Enter Option (#,F,B,X,P, or Q): Q
# cat xcart.xml
# Type: CA.SM::AgentConfig
# (I) Name : "myACO"
REPLACE=CA.SM::AgentConfig@21-000213d9-52e3-251g-8s56-055548ssc555sd
# XPSExport pstore.xml -xf xcart.xml -npass
# cat pstore.xml
<?xml version="1.0" encoding="UTF-8"?>
[...omitted for brevity...]
<Object Class="CA.SM::AgentConfig" Xid="CA.SM::AgentConfig@21-000213d9-52e3-251g-8s56-055548ssc555sd" CreatedDateTime="2023-11-08T09:21:10" ModifiedDateTime="2023-11-14T09:30:35" UpdatedBy="<name>" UpdateMethod="GUI" ExportType="Replace">
[...omitted for brevity...]
<Property Name="CA.SM::AgentConfig.Name">
<StringValue>myACO</StringValue>
</Property>
</Object><!-- Xid="CA.SM::AgentConfig@21-000213d9-52e3-251g-8s56-055548ssc555sd" -->
</PolicyData>
</XPS>
Here, edit the pstore.xml to make the changes.
For instance, let's change the AgentConfig.Name value to myACO-1:
<Property Name="CA.SM::AgentConfig.Name">
<StringValue>myACO-1</StringValue>
Save the pstore.xml file.
# XPSImport pstore.xml -c
<<<
Then, running XPSExplorer and showing objects from menu 108, the ACO myACO is being named myACO-1. The AdminUI will show the ACO name myACO-1 too.