Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

AEM XPath Query special characters

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Former Community Member

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.