On Wed, 2008-09-24 at 09:15 +0530, Saliya Ekanayake wrote:
> Hi Thorsten (now I know how to greet in Spanish :) ),

hehe, glad to hear. ;) 

> This is interesting ;) 

Isn't it. 

> Theoretically XPath should work no matter how the OM
> tree is built. I will look into this and reply to you ASAP.

I opened an issue to keep track of this issue.
https://issues.apache.org/jira/browse/WSCOMMONS-388

Thanks for looking into this.

salu2

> Regards,
> Saliya
> 
> On Tue, Sep 23, 2008 at 4:14 PM, Thorsten Scherler <
> [EMAIL PROTECTED]> wrote:
> 
> > On Tue, 2008-09-23 at 11:53 +0200, Thorsten Scherler wrote:
> > > I wonder - reading your other answers - whether AXIOMXPath is only
> > > working with OM's that a builder has generated (parsing a file) and
> > > not
> > > like I do an OMElement that I created from the factory (without
> > > parsing
> > > a file), hence builder = null.
> >
> > I did a small test where I created a file and used it instead the former
> > approach to create the OMElement via the factory and this revealed that
> > above suspicion is right. The objects are identically besides the
> > builder which seems to make all the difference.
> >
> > If you create a model directly from a factory and not a builder
> > AXIOMXPath will not return you any node.
> >
> > Is this a bug?
> >
> > salu2
> > --
> > Thorsten Scherler                                 thorsten.at.apache.org
> > Open Source Java                      consulting, training and solutions
> >
> >
> 
> 
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions

Reply via email to