[jdom-interest] question (help)

Brett McLaughlin brett.mclaughlin at lutris.com
Fri Sep 8 16:15:41 PDT 2000


Michael Engelhart wrote:
> 
> Hi,
> 
> Yesterday I posted about a problem I'm having with the
> getAttributeValue(String name) method in the Element class which I didn't
> get a response to so I'm reposting since my question may not have been very
> clear.  Here goes:
> If I have an attribute value which is an "escaped" string, the escape
> slash is removed upon retrieval.  Can anyone tell me if this is a bug or
> expected behavior?  If it's expected, please tell me why that happens so I
> can try and come up with a workaround.  The reason (in case anyone is
> questioning) that I have escaped strings is that i'm keeping a bunch of
> regular expressions stored in an xml document for retrieval and am using
> the ORO (now Apache) Perl utilities matching classes which require escaped
> strings in their patterns like this:
> m/MAX\\s+([0-9]+)/s
> 
> which the getAttributeValue() mangles into:
> m/MAX\s+([0-9]+)/s
> 
> not the single slash after "MAX" in the returned string.   I can't figure
> out why this would be the correct behavior but maybe it is.

Hey, Mike-

  For sure, it's a bug. I've got it pn my list to look at and just
haven't gotten a chance yet ... I'll try to fix that this weekend. Sorry
for the delay in a response ;-)

-Brett

> 
> Thanks for any insight
> 
> Mike
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

-- 
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc. 
1200 Pacific Avenue, Suite 300 
Santa Cruz, CA 95060 USA 
http://www.lutris.com
http://www.enhydra.org



More information about the jdom-interest mailing list