我想删除所有说“SetActiveLocale”并具有“en”值的事务,除了第一个 SetActiveLocale 事务。我正在使用 XML 文档来存储整个字符串文件。
<bmtactionlog>
<transaction saved="false" seq="1" timestamp="20130621143502322">
<action seq="1" type="SetActiveLocale">
<inputparams>
<param seq="1" type="i18nstring">
<value>en</value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="true" seq="2" timestamp="20130621143502322">
<action seq="1" type="Modify">
<inputparams>
<param seq="1" type="handle">
<mappingpath>shortcut/description</mappingpath>
<value>/O/description[0]/O/[Employee expense].[Account]</value>
</param>
<param seq="2" type="i18nstring">
<value>2:34</value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="false" seq="1" timestamp="20130621143502327">
<action seq="3" type="SetActiveLocale">
<inputparams>
<param seq="1" type="i18nstring">
<value>en</value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="true" seq="4" timestamp="20130621143502327">
<action seq="1" type="Modify">
<inputparams>
<param seq="1" type="handle">
<mappingpath>shortcut/description</mappingpath>
<value>/O/description[0]/O/[Employee expense].[Employee (by manager)]</value>
</param>
<param seq="2" type="i18nstring">
<value>2:34</value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="false" seq="1" timestamp="20130621143502327">
<action seq="5" type="SetActiveLocale">
<inputparams>
<param seq="1" type="i18nstring">
<value>en</value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="true" seq="6" timestamp="20130621143502327">
<action seq="1" type="Modify">
<inputparams>
<param seq="1" type="handle">
<mappingpath>shortcut/description</mappingpath>
<value>/O/description[0]/O/[Employee expense].[Employee (by organization)]</value>
</param>
<param seq="2" type="i18nstring">
<value>2:34</value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="false" seq="1" timestamp="20130621143502327">
<action seq="7" type="SetActiveLocale">
<inputparams>
<param seq="1" type="i18nstring">
<value>en</value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="true" seq="8" timestamp="20130621143502327">
<action seq="1" type="Modify">
<inputparams>
<param seq="1" type="handle">
<mappingpath>shortcut/description</mappingpath>
<value>/O/description[0]/O/[Employee expense].[Employee (by position)]</value>
</param>
<param seq="2" type="i18nstring">
<value>2:34</value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="false" seq="1" timestamp="20130621143640438">
<action seq="1" type="SetActiveLocale">
<inputparams>
<param seq="1" type="i18nstring">
<value>en</value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="true" seq="10" timestamp="20130621143640438">
<action seq="1" type="SetSecurityViewAccess">
<inputparams>
<param seq="1" type="handle">
<mappingpath>securityView</mappingpath>
<value>[].[securityViews].[GO Data Warehouse (analysis)]</value>
</param>
<param seq="2" type="integer">
<value>1</value>
</param>
<param seq="3" type="cclnode">
<value>
<![CDATA[<securityObjects/>]]></value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="true" seq="11" timestamp="20130621143640439">
<action seq="1" type="SetSecurityViewAccess">
<inputparams>
<param seq="1" type="handle">
<mappingpath>package</mappingpath>
<value>[].[packages].[GO Data Warehouse (analysis)]</value>
</param>
<param seq="2" type="integer">
<value>1</value>
</param>
<param seq="3" type="cclnode">
<value>
<![CDATA[<securityObjects/>]]></value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
<transaction saved="true" seq="12" timestamp="20130621143640439">
<action seq="1" type="Publish">
<inputparams>
<param seq="1" type="handle">
<mappingpath>package</mappingpath>
<value>[].[packages].[GO Data Warehouse (analysis)]</value>
</param>
<param seq="2" type="integer">
<value>2</value>
</param>
<param seq="3" type="i18nstring">
<value>/content/folder[@name='Sahil']</value>
</param>
<param seq="4" type="i18nstring">
<value>GO Data Warehouse (analysis)</value>
</param>
<param seq="5" type="integer">
<value>1</value>
</param>
<param seq="6" type="integer">
<value>1</value>
</param>
<param seq="7" type="integer">
<value>-1</value>
</param>
</inputparams>
<domchanges/>
<result success="t">
<outputparams/>
</result>
</action>
</transaction>
</bmtactionlog>