I need an Xpath
expression that will select values that start with a certain value. For this instance I am using the id
field.
@id=[starts-with(name(),'value')
The following does not work. Is there a way to use the starts-with
command with the value between the tags? Or is there another means in Xpath
of selecting a matching a value with a known value.
Here is a sample of the XML I am trying to drill into:
<bean>
<id>AnnotationsBasedJMXAutoExporter</id>
<class>org.springframework.jmx.export.MBeanExporter</class>
<lazy-init>false</lazy-init>
<property>assembler
<!-- will create management interface using annotation metadata -->
<bean></bean>
</property>
</bean>