Try //it-works or /jcr:root/it-works Rakesh
On 23/05/2011 06:36, "Magnolia Forums (on behalf of Tim Shaw)" <[email protected]> wrote: > >Hi, > >I'm new to Magnolia/XPath, but an experienced developer. > >I've set up a test case using the 'openutils' JUnitRepositoryTestcase. > >I have data in my repository! I can find it using >MgnlContext.getHierarchyManager.getContent( "it-works" ). I can't find it >using XPath ('/jcr:root/it-works/*')! The same code, with a query string >of '/jcr:root//*' returns all my expected nodes, and I can see the >'it-works' ones fine. > >The context and setup is the same in all cases. > >Please help as I can't see what I'm doing wrong. > >Regards > >tim > >-- >Context is everything: >http://forum.magnolia-cms.com/forum/thread.html?threadId=803af20d-bbd4-489 >0-8697-481935abfce3 > > >---------------------------------------------------------------- >For list details see >http://www.magnolia-cms.com/home/community/mailing-lists.html >To unsubscribe, E-mail to: <[email protected]> >---------------------------------------------------------------- > ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
