cancel
Showing results for 
Search instead for 
Did you mean: 

[solved]problem with special characters in xpath

ethan
Champ in-the-making
Champ in-the-making
Hi Smiley Happy

I'm facing a problem with the xpath of the nodes I'm trying to add to the Alfresco repository. To make the xpath of my nodes I use the name of the documents. As they all starts with a ( or with a number, I used ISO9075.encode() to encode them. The problem is for emails which title is like "Fwd: my subject…". The : is not supported in xpath but is not encoded with ISO9075 !

So which encoding type should I use to get rid of all these special characters not supported in xpath? Or is there another solution?

Thank for your help Smiley Happy
Regards.
2 REPLIES 2

ethan
Champ in-the-making
Champ in-the-making
I finally created my own encoding class to convert each and every illegal characters in xpaths.

emdub
Champ in-the-making
Champ in-the-making
Care to share that encoder class?   It would be most helpful.  thanks.