Hi,
We can search content based on the xpath in an xml file. If we import an xml
under a particular node, you could make xpath search. For example consider
the below xml
<Addresses>
<Address>
<Name>Odyssey</Name>
<Number>50</Number>
<Area>Adyar</Area>
<City>Chennai</City>
<State>TN</State>
<Country>India</Country>
</Address>
</Addresses>
If we import this under the node called 'ShoppingCentre', we could execute
the query with the xpath
'//ShoppingCentre/Addresses/Address/Name/jcr:xmltext' to get the Name node.
I think Jukka has also meant the same.
Regards,
Nithya Mani
Senior Developer, webMethods
[EMAIL PROTECTED]
IM: nithya_infravio (Yahoo)
-----Original Message-----
From: Jukka Zitting [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 2:23 PM
To: [email protected]
Subject: Re: is XPath possible on property value?
Hi,
On 2/19/07, Malligarjunan Sidduraj
<[EMAIL PROTECTED]> wrote:
> Can we apply XPath on a particular Property value which is a type of
> application/xml.
>
> We can do XPath on JCR tree Hierarchy that I know.
> Ex : "//[EMAIL PROTECTED] = 'wsdl'
>
> In that above example I want apply the XPath on Property value?
> Like "//[EMAIL PROTECTED] = (XPATH Query) or some XPath Query on content?
No, that's not possible. If possible, you might want to consider
modifying your content model so that instead of storing XML in your
properties you expand the content into normal JCR nodes and
properties.
BR,
Jukka Zitting