Hi Thorsten (now I know how to greet in Spanish :) ),

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

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
>
>


-- 
Saliya Ekanayake
http://www.esaliya.blogspot.com
http://www.esaliya.wordpress.com

Reply via email to