Note that there are some explanatory texts on larger screens.

plurals
  1. POXMLStarlet does not edit anything
    primarykey
    data
    text
    <p>i have the following XML:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt; &lt;blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:objectgrid="http://www.ibm.com/schema/objectgrid" xsi:schemaLocation="http://www.ibm.com/schema/objectgrid http://www.ibm.com/schema/objectgrid/objectgrid.xsd"&gt; &lt;objectgrid:server id="catlogServer" isCatalog="true" serverPropertyFile="location_server_properties_file"&gt; &lt;/objectgrid:server&gt; &lt;/blueprint&gt; </code></pre> <p>and i am tring edit the attribute value of serverPropertyFile using xmlstarlet in the following manner:</p> <pre><code>/tmp/scripts/xmlstarlet ed -N objectgrid=http://www.ibm.com/schema/objectgrid -u "//blueprint/objectgrid:server/@serverPropertyFile" -v '/home/iwuser/att-platform/1.0.10/servers/catalog_demo/config/wxs-catalog-server/catalog-properties/catalog.properties' '/var/tmp/catalog_demo/config/catalog-blueprint.xml' &gt; /var/tmp/temp_xml31651.xml </code></pre> <p>what am i missing ?</p> <p>found the answer: the xpath i used is incorrectly the right one is:</p> <pre><code>/tmp/scripts/xmlstarlet ed -N objectgrid=http://www.ibm.com/schema/objectgrid -u "//objectgrid:server/@serverPropertyFile" -v '/home/iwuser/att-platform/1.0.10/servers/catalog_demo/config/wxs-catalog-server/catalog-properties/catalog.properties' '/var/tmp/catalog_demo/config/catalog-blueprint.xml' &gt; /var/tmp/temp_xml31651.xml </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload