On Mon, 10 Dec 2001, Jon Baer wrote: > Hi, > > Im trying to "reapply" Jaxen to a current research project and Im trying > to figure out if XPath can accomplish this to begin with. What Im > trying to do is apply a DOM to a sentence structure with a 10mb XML file > as such: > > <p>I LIKE CARS</p> > <p>I HATE CARS</p> > <p>I LIKE *</p> > > Id liken the path to something like /root/I/LIKE/CARS or such but is > there an easy way to treat the contents of the element as path nodes? I > hope Im not sounding confusing. Maybe Im just looking for the right > XPath formula to use here?
Yah, that won't work, right off hand. You coud pre-process it into: <I> <LIKE> <_STAR_/> <CARS/> </LIKE> <HATE> <CARS/> </HATE> </I> And then you're on your way to XPathy goodness. But, otherwise, XPath really isn't your friend for dealing with the text context of an element. -bob _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest