-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: How to escape in a filter class filter
PostPosted: Wed Jul 04, 2007 5:40 am 
Newbie

Joined: Fri Jun 29, 2007 12:06 pm
Posts: 4
Hi,

I have got the following filter rule defined:
Code:
    <filter name="theFilterArchive" condition="(calendarTimeStamp < :theTimestamp)"></filter>


But I am getting the following error message:

Code:
Caused by: org.dom4j.DocumentException: Error on line 30 of document  : The value of attribute "condition" associated with an element type "filter" must not contain the '<' character. Nested exception: The value of attribute "condition" associated with an element type "filter" must not contain the '<' character.


So I think I have to escape the "<" Character, but how could this be done?

Thanks
Lukas


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 5:16 pm 
Newbie

Joined: Thu Aug 30, 2007 12:02 pm
Posts: 8
I don't have a clean answer for you but at least it will work.

Simply inverse your condition. Instead of

A < B
put

B >= A


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 18, 2007 2:02 am 
Regular
Regular

Joined: Wed Jun 20, 2007 1:53 am
Posts: 75
Hi,

Use below conventions,
> &gt;
< &lt;
>= &gt;=
<= &lt;=




If we use < in xml then parser will think that it is intimation for opening the tag.

Hope this will help you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.