[jdom-interest] getAttributeValue() removing escaped char

Michael Engelhart mengelhart at earthtrip.com
Thu Sep 7 14:11:27 PDT 2000


Hi,

I have simple XML file with elements like this:

<resource key="REGEX" value="m/[a-z].*\\W+/s" />


when I read it in and call Element.getAttributeValue("value"), I get this  
as the string:
m/[a-z].*\W+/s

where the original has an escaped "\\" in it:
m/[a-z].*\\W+/s

Any idea what gives?

Thanks,

Mike



More information about the jdom-interest mailing list