AEM XPath Query special characters | Community
Skip to main content
New Participant
October 16, 2015
Solved

AEM XPath Query special characters

  • October 16, 2015
  • 1 reply
  • 1217 views

I'm currently trying to create a xpath query in crxde that is looking for items that contain some special characters. Here is what i have.
/jcr:root/content/*//jcr:content//*[jcr:contains(., '<style>')]

This end up yeilding a list of items containing style instead of <style>. I've tried escaping the character like this "\<style\>" and that didn't do anything.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by

It would be useful to see an example of the data that you are searching.

The predicate part of you XPath also looks incorrect.

Have you tried using &gt; and &lt; in place of the angle brackets.

HTHs

Fraser.

1 reply

Accepted solution
October 16, 2015

It would be useful to see an example of the data that you are searching.

The predicate part of you XPath also looks incorrect.

Have you tried using &gt; and &lt; in place of the angle brackets.

HTHs

Fraser.