to set its attributes. Not so
for elements. In this case you must implement and set
an AbstractFactory on your JXPathContext.
HTH,
Matt
-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 26, 2007 12:10 PM
To: Jakarta Commons Users List
Subject: RE

--- Mcduffey, Joe [EMAIL PROTECTED] wrote:
Yes an example of using AbstractFactory in this way.
There are examples in the testcases in the
org.apache.commons.jxpath.ri.model.dom and
org.apache.commons.jxpath.ri.model.jdom packages.
-Matt
-Original Message-
From: Matt Benson

open, however, because the
fact that selectSingleNode() behaved the way you
wanted it to is the actual bug (as I suspected might
be the case). :)
-Matt
--- Matt Benson [EMAIL PROTECTED] wrote:
--- Singh, Rupinder
[EMAIL PROTECTED]
wrote:
Can somebody explain the unusual behaviour

--- liumin HU [EMAIL PROTECTED] wrote:
hi everyone,
I use jxpath to manage an ArrayList of bean, the
Context is created like: JXPathContext
context=JXPathContext.newContext(list);
When I want to delete some objects in the arraylist,
i used context.removeall, but it doesn't work.

Hi,
To be quite honest I'm not sure where the xs:
portions of your example, and question, are coming
from. Maybe if you provide a little more basic detail
to describe how you got to the point you're at with
JXPath, the list could be of more help.
-Matt
--- Desai, Jasmina [EMAIL PROTECTED]

Note the subject change; on the Commons mailing lists
the subject line should be prefaced by the
bracket-delimited component name.
--- Jasmina Desai [EMAIL PROTECTED] wrote:
Hi,
I have several objects of an objectwhich I need to
filter using JXPATH by checking a particular
property
in

This is a little late, but Morph at sf.net is another
object transformation project similar to Dozer with a
different architecture, that comes with DynaBean
support. If you try the current (old) release and
have any problems don't hesitate to ask on the mailing
lists for help or info.
-Matt
---

--- Warren Liang [EMAIL PROTECTED] wrote:
Hi all,
How does JXPath handle circular object paths? My
object graph is can
have circular references to objects that are the
same instance (i.e.
obj1 == obj2), or are different instances but have
equivalent values
(i.e. obj1.equals(obj2))

--- Jeffrey Puro [EMAIL PROTECTED] wrote:
I have a pojo that has the following properties:
Looks like a set is unsupported. :( Could you
possibly use some kind of wrapper object, possibly
returning asList() from a commons-collections
ListOrderedSet from a getSetAsList() method or
something

From a cursory look at [launcher], it looks like you
probably want to add the basedir as a system property
using a nested sysproperty in your launch task, or
something.
-Matt
--- acec acec [EMAIL PROTECTED] wrote:
In my java application, I try to get basedir from
launcher.xml
property

--- Rodrigo Ruiz [EMAIL PROTECTED] wrote:
Hi everybody,
I would like to apply an XSLT transformation on an
internal object
structure, instead of a DOM. Is there a way to do
this with JXPath and
Xalan (or any other XSLT engine)?
I can't think how to do this with JXPath. Jaxen might

--- Rodrigo Ruiz [EMAIL PROTECTED] wrote:
Hi all,
Is JAXP compliance in the project roadmap?
Cheers,
Rodrigo
The Commons community has in fact voted to accept a
code donation which provides support for the relevant
parts of the JAXP spec. This is on hold until after
JXPath 1.3 is

--- Tom Muldoon [EMAIL PROTECTED] wrote:
Can anyone explain why the
InfoSetUtil.booleanValue(Object object) method
returns true when the object is a String if and only
if it is a non-zero length string? Here's a code
excerpt ...
else if (object instanceof String) {

--- Nazar Stasiv [EMAIL PROTECTED] wrote:
Hello,
I want to ask about elegant way to store key,value
pairs into bidimap where
value has many occurrences. It is known that if map
stores key,value pair
into existing key bucket old value is replaced with
new one.
Now when it comes to lookup

For the most part this project is in maintenance mode.
There's not a wealth of interest/expertise on adding
new features, but the community is committed to seeing
through the original goal of providing a compatible
implementation of XPath 1.0. JXPath 1.3 should be
released in the relatively near

Yes, JXPath 1.3 has actually had three release
candidates cut; a fourth should come very soon. So
JXPath 1.3 should be released sometime in July.
-Matt
--- Matt Accola [EMAIL PROTECTED] wrote:
Is JXPath still an active project? I see the last
release was 1.2 in
August 2004. I see 46 of 46

--- Harald Finster [EMAIL PROTECTED] wrote:
Hello again,
I would just like to add an other observation:
If I add
MapT,T map ;
to my 'Book', I get the 'expected' result for the
map property ,
i.e. iterating with /* as XPath results in the
following:
title = Book Title

Note that I have added the component ID to the subject
line:
I'm not sure I entirely understand the question. If I
wanted to copy a byte[] to a VFS FileObject I would
use commons-io IOUtils to copy the byte[] to
fileObject.getContent().getOutputStream(). Does this
help?
-Matt
--- Walter,

[] data,
java.io.OutputStream outstr) or
writeContent(byte[] data, FileObject out)
What does VFS have for buffering?
Nothing I can see, but again, I don't have any
particular expertise with the API.
-Matt
thanks
-Original Message-
From: Matt Benson [mailto:gudnabr

--- Andrew Hughes ahhug...@gmail.com wrote:
Hi All,
Is JXPath dead in the water? I can't find a post
here in 2009 and very
limited posts in 2008.
Hi Andrew,
JXPath is considered to be in maintenance mode.
In general, this means that this component is
considered to be more or less

, Feb 9, 2009 at 2:27 PM, Matt Benson
gudnabr...@yahoo.comwrote:
Most likely your problem is not with
generics, but simply with the fact
that JXPath has a hard time using a
collection as its root. The easiest
workaround is to use some parent object to
hold a reference to your
container

)
(and the children are allowed to be non-unique).
This is equivalent to an XML element as it can contain
multiple child
elements, how do these guy's handle it I wonder?
--Andrew
On Wed, Feb 11, 2009 at 9:09 AM, Matt Benson
gudnabr...@yahoo.com wrote:
I admit I hadn't looked

again matt! I won't get to test this out
til later tonight be look
foward to seeing it working!!!
Andrew
On Wed, Feb 11, 2009 at 2:57 PM, Matt Benson
gudnabr...@yahoo.com wrote:
It should be as simple as Thing _containing_ a
ListThing rather than
_being_ a ListThing

name literally is name, you must
treat it as a child element rather than an attribute. So in your case you
could either change name to title and query [...@title='foo'] or simply use
[name='foo'].
Regards,
Matt
--- On Mon, 2/23/09, Matt Benson gudnabr...@yahoo.com wrote:
From: Matt Benson

);
}
}
}
On Tue, Feb 24, 2009 at 8:58 AM, Matt Benson gudnabr...@yahoo.com
wrote:
And the answer is:
In JXPath, a decision was made to overload the
name attribute to refer to
an element's property name WRT its parent. The
reason this was done was
to support query maps with non-String keys

Matt Benson on 23/02/09 16:23,
wrote:
--- On Sat, 2/21/09, Adam Hardy wrote:
I have spent a day researching and
prototyping with various open-source
options available which facilitate converting an
HTTP request's parameters into an object model of javabeans
in a JPA persistence

requirement of JXPath and also where should I look to
possibly 'fix' this if
it indeed would compliment the current features?
Thanks HEAPS!
On Thu, Mar 5, 2009 at 3:05 AM, Matt Benson gudnabr...@yahoo.com
wrote:
Apparently the reason I was so ready to agree this was
a bug that should

There really isn't one. You simply run the testcases en masse... in what
context are you trying to run the tests?
-Matt
--- On Thu, 4/9/09, Sullivan, Angela angela.sulli...@fmr.com wrote:
From: Sullivan, Angela angela.sulli...@fmr.com
Subject: commons-apache-jxpath: TestCase entry point

Hi Andrew,
I'm not sure if JXPath is necessarily really the right tool for this. This
almost just looks like a sort of hierarchical lookup. I have a HierarchyTable
we use at my $work for these type purposes; unfortunately I haven't yet gotten
clearance to release it into the wild. I plan

FWIW, there is a [flatfile] M2 snapshot published at
repository.apache.org.
-Matt
On Jan 5, 2010, at 6:44 AM, Ben Short wrote:
Hi,
The project page [1] says that the code is unreleased.
So you will need to build it yourself. The instructions are here [2].
Ben
[1]

It would probably be collections 4.0 and there hasn't yet been a
snapshot published, due to the as-yet unresolved questions of package
renaming, etc.
-Matt
On Jan 5, 2010, at 5:31 AM, nicolas de loof wrote:
Hi
I'd like to use commons-collection 3.3 SNAPSHOT (to get Java5 syntax
support)

Much work has been done on the [collections] trunk; however noone has
had time to finish it all up for a release. Searching the
d...@commons.apache.org archives may give you an idea of what remains
(off the top of my head, I can only think of the task of addressing
all JIRA issues filed

On Mar 17, 2010, at 9:31 PM, Farrukh Najmi wrote:
Hi Guys,
Does JXPath support processing of xlink simple links? Thanks for
any pointers on how to process documents with simple xlinks using
JXPath.
No, I'm afraid JXPath contains no XLink support. Is it specified
anyplace that an

Can you provide examples of advantages of using an automobile in
preference to your provided feet? ;P
-Matt
On Mar 19, 2010, at 5:27 PM, Martin Gainty wrote:
Bienvenue Luc!
can you provide examples of any advantages of using Apache Math
project over the provided java.Math library?

Notwithstanding that I find the previous post confusing on many
levels, I would discourage this thread from continuing on the Commons
list(s), despite the fact that I am the one who brought it up. Morph
is not a Commons project and has its own lists.
-Matt
On 4/14/10, Martin Gainty

Echoing Sebastian, a possibility would be to port Ant's FixCrlfFilter
(implements java.io.FilterReader) to [io]. Quite some changes would
be needed, but this code has at least been heavily tested.
-Matt
On Apr 19, 2010, at 12:16 PM, Siegfried Goeschl wrote:
Hi folks,
I just had to type

On Apr 20, 2010, at 4:23 AM, Nicolas Hernandez wrote:
Dear JXPath users,
does someone know how much JXPath 1.3 is compliant with XPath 2.0 ?
JXPath does not attempt to support anything that is specific to XPath
2.0.
Does JXPath handle operators such as 'union', 'intersect', 'except' ?

On Mon, May 16, 2011 at 2:16 PM, Romain Rouvoy romain.rou...@lifl.fr wrote:
On 16 mai 2011, at 16:06, Matt Benson wrote:
On Mon, May 16, 2011 at 4:51 AM, Romain Rouvoy romain.rou...@lifl.fr wrote:
I'm using JXPath to query a graph of beans, which are heavily using lists,
e.g.:
public class

Quick potential suggestions:
- Set some property on the parent, and query it in your factory
- Subclass TheObject and override the dataArray accessors to TheChild[]
- Use a different factory instance that does what you want
Matt
On Fri, Jul 29, 2011 at 6:17 PM, Hippo Man hippo.mail...@gmail.com

Hi, Martin. No concrete plans as yet, but keep prodding and we'll see
what can be done. :)
Matt
On Tue, Aug 16, 2011 at 8:25 AM, mainz...@bluewin.ch
mainz...@bluewin.ch wrote:
Hello
First of all: Thanks for JXPath, it is a wonderful library that helps us a
lot!
I wanted to ask whether

On Tue, Jan 3, 2012 at 10:16 AM, Ed Beaty ebe...@luminexcorp.com wrote:
Hi, all. Is the Commons Functor source still available for download, or has
it been pulled in preparation for a formal release? Currently (3 Jan 2012)
none of the links

Hi Chas,
Some of us have been planning to work on a component of this type.
Some of Simone Tripodi's ideas are in the [meiyo] sandbox project; the
[classscan] sandbox area has also been reserved, but we haven't yet
added anything here. Feel free to join in/start the discussion and
submit

http://search.maven.org/#artifactdetails%7Corg.apache.commons%7Ccommons-math3%7C3.0%7Cjar
On Mon, Mar 26, 2012 at 5:11 PM, billy bob dtasse2...@yahoo.com wrote:
The most recent version currently on maven central is 2.2. Any idea when 3.0
will be available?

the java code that was generated?
Maybe if the is methods where change to get method, will it work?
-Lucas
On Tue, Jul 3, 2012 at 6:55 PM, Matt Benson gudnabr...@gmail.com wrote:
Have you tried /isUsaResident? Javabean property names typically
begin with lower case.
HTH,
Matt
On Tue

#Standard_Extension_Functions
Do you think it's possible to file a new issue for this?
-Lucas
On Tue, Jul 3, 2012 at 10:33 PM, Matt Benson gudnabr...@gmail.com wrote:
Good call; yes, being an Object Boolean, the is idiom does not work.
Matt
On Tue, Jul 3, 2012 at 8:11 PM, Lucas Reginato lucas.regin...@gmail.com

On Thu, Jul 5, 2012 at 12:14 PM, Matt Benson gudnabr...@gmail.com wrote:
On Tue, Jul 3, 2012 at 8:58 PM, Lucas Reginato lucas.regin...@gmail.com
wrote:
I will try to make this change (from is method to get method) tomorrow
and
will send the results.
But imagine the scenario: you have

As Jun suggests, a custom extension function [1] is probably in order
to keep your expressions reasonably (!) short. Assuming you want to
use JXPath without modifying any of your existing code, I would
recommend trying to write a custom function that makes the call to
retrieve the name. Then

Can you put together a small test case that illustrates the problem?
Matt
On Tue, Mar 12, 2013 at 6:49 AM, MASTRELLA STEFANO smastre...@sogei.itwrote:
Hi all,
I'm trying to use jxpath-1.3 to query the content of some tags within an
html fragment.
Given the file 'html.frag.response.html'

I don't know about [math], but [lang] 3.x has mean, median and mode in
ObjectUtils.
Matt
On Jul 4, 2013 10:25 AM, Ben Titmarsh ben.titma...@hotmail.co.uk wrote:
Hi,
I am looking for a library that can provide the mode (
http://en.wikipedia.org/wiki/Mode_%28statistics%29) of a set numbers.

Guilty ;-)
On Jul 29, 2013 6:26 AM, James Carman ja...@carmanconsulting.com wrote:
I did not intent to send it twice at all! :) I actually sent it from
two different accounts. It didn't go through the first time, because
the first account is not registered (someone must have moderated it

At some point I had had it in mind that ImageFormat should be converted to
a proper enum type. Can anyone offer any reasons this should not be done,
particularly before 1.0.0?
Matt
On Tue, Oct 22, 2013 at 1:44 PM, Damjan Jovanovic damjan@gmail.comwrote:
Yes I agree, we might as well

, Matt Benson gudnabr...@gmail.com wrote:
At some point I had had it in mind that ImageFormat should be converted
to
a proper enum type. Can anyone offer any reasons this should not be
done,
particularly before 1.0.0?
Matt
On Tue, Oct 22, 2013 at 1:44 PM, Damjan Jovanovic damjan

Are you running Java-based processes, e.g. Apache Tomcat or any derivative
thereof, on this VM?
Matt
On Tue, Oct 22, 2013 at 3:17 PM, Jay Vee jvsr...@gmail.com wrote:
I have a BSD VM that I pay for. I pay for memory usage and keep getting
overage notices and have to pay a buck or two every

On Tue, Oct 22, 2013 at 9:23 PM, Matt Benson gudnabr...@gmail.com
wrote:
If the API will be extensible, that's perhaps a different matter,
although
in that case maybe the extensible part should be an interface
implemented
by ImageFormat's constants. In this case we could convert

The Apache Commons team is pleased to announce the release of:
Apache Commons Weaver 1.0
Apache Commons Weaver provides an easy way to enhance compiled Java
classes by generating (weaving) bytecode into those classes.
Distribution packages can be downloaded from:

Hi, John. Sorry for the long delay.
The original authors of JXPath are long gone, but from what I can
reconstruct the intent of nested JXPathContexts is only to unify treatment
of things like variables, namespaces, and at a guess, functions. AFAICT
your test case appears to have overcomplicated

seem faster than
the built-in JAXP stuff.
-john
On 04/25/2014 12:33 PM, Matt Benson wrote:
Hi, John. Sorry for the long delay.
The original authors of JXPath are long gone, but from what I can
reconstruct the intent of nested JXPathContexts is only to unify treatment
of things like

The Apache Commons team is pleased to announce the release of:
Apache Commons Weaver 1.1
Apache Commons Weaver provides an easy way to enhance compiled Java
classes by generating (weaving) bytecode into those classes.
The release notes can be reviewed at:

The recent release of Lang does provide a method to get fields with a
particular annotation.
Matt
On May 30, 2015 7:27 AM, Timo mailant...@gmx.de wrote:
Thank you for the suggestions!
Commons Weaver kind of has a way to do what I want, but it's... ehm...
woven with the rest of the project

The Apache Commons Team is pleased to announce the availability of:
Apache Commons Weaver 1.2
Apache Commons Weaver provides an easy way to enhance compiled Java
classes by generating ("weaving") bytecode into those classes.
The release notes can be reviewed at:

The Apache Commons Team is pleased to announce the availability of:
Apache Commons Weaver 1.3
Apache Commons Weaver provides an easy way to enhance compiled Java
classes by generating ("weaving") bytecode into those classes.
The release notes can be reviewed at:

There should be multiple existing open source Java libraries to do this
type of thing. Shameless* plug: one such is my own
https://github.com/mbenson/therian .
Agree this is out of scope for [lang] and that [beanutils] would be more
appropriate.
Matt
* Maybe there was a little shame.
On Nov