Hi Tom

Sorry for the cross-post, just thought I'd keep everyone updated. Yes there
indeed was a bug with XPaths where element or attribtue names started with
an underscore. It turned out to be a minor issue in the SAXPath lexer of the
XPath expressions. I've patched it in SAXPath and there are now test cases
in Jaxen to ensure this keeps working across all XML models.

Thanks for spotting this one Tom - sorry it took so long to fix.

If it helps this is all fixed in the CVS repositories and the daily dom4j
build.

James
----- Original Message -----
From: "Tom Oehser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 4:12 PM
Subject: [dom4j-user] Bug with attributes starting with underscore?


> Running:
> Document doc = DocumentHelper.parseText(
> "<?xml version='1.0' encoding='UTF-8'?>"
> +"<a><b c='d' _e='f' /></a>");
> System.out.println(" c= "+doc.valueOf("/a/b/@c"));
> System.out.println("_e= "+doc.valueOf("/a/b/@_e"));
> produces
>
>  c= d
> _e=
>
> ??? This looks like a bug...
>
> -Thanks -Tom Oehser [EMAIL PROTECTED]
>
>
>
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to