> x = new XML("<test thing='boo'><items name='blah'><item > foo='bar'/><item foo='blah'/></items></test>"); > > r = XPathAPI.selectNodeList(x,"/*/item");
If I understand correctly, that search would not find anything, because item is not a child of test, but rather of items. If I'm reading your XPath expression correctly, you would find /items/item, but not /test/items/item. Valid alternative expressions would be //item, /test/*/item, /*/*/item. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com