[augeas-devel] [Augeas] #304: XML truncate files

Augeas trac at fedorahosted.org
Wed Oct 3 10:41:29 UTC 2012


#304: XML truncate files
------------------------+---------------------
 Reporter:  gioppoluca  |       Owner:  lutter
     Type:  defect      |      Status:  new
 Priority:  major       |   Milestone:  next
Component:  Augeas      |     Version:  0.9.0
 Keywords:  xml         |  Blocked By:
 Blocking:              |
------------------------+---------------------
 I'm trying to parse activemq.xml configuration file to modify
 configuration trhoug shell using augeas.
 Executed the following command:
 echo -e "set /augeas/load/activemq/lens Xml.lns\nset
 /augeas/load/activemq/incl /etc/activemq/activemq.xml\nset
 /files/etc/activemq/activemq.xml/beans/broker/transportConnectors/transportConnector[2]/#attribute/uri
 stomp+nio://0.0.0.0:6163"|augtool -s

 And now I got just this in the file:
 <beans><broker><transportConnectors><transportConnector
 uri="stomp+nio://0.0.0.0:6163"></transportConnector>
 </transportConnectors>
 </broker>
 </beans>

 That is just the node worked on all the rest of the file is gone.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/304>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list