Xpath Predicate to match <![CDATA[sometext]]>
问题 My xml element content is having special characters like <,>,[,]. I want to find element macthing the content <![CDATA[someText]]> and replace it with some new value like <![CDATA[newValue]]> . <property name="sourcePath"> <string><![CDATA[someText]]></string> </property>` I am trying to do this using below xsl template. But it is not working. <xsl:template match="property[string='<![CDATA[someText]]>']"> <xsl:element name="string"> <xsl:text disable-output-escaping="yes"><![CDATA[newValue]]>