> My Xml is : > <ROOT> > <TEST> > <NODE1> AAAAAAAAA</NODE1> > </TEST> > </ROOT> > > I got the XalanNode, using XPATH ROOT/TEST, > Then Called getFirstChildNode , it is returning TextNode, it should be Element Node.
No, there's a whitespace text node between TEST and NODE1. > But, if I change XML bellow, it works fine > <ROOT><TEST><NODE1> AAAAAAAAA</NODE1></TEST></ROOT> You've removed the whitespace text node. A good tutorial or book on XML will explain things like this to you. Dave
