Yeah, I know it's not xalan-specific. Sorry about that...can you recommend any good generic xpath mailing lists?
Jonathan Boutelle -----Original Message----- From: David Marston/Cambridge/IBM [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 1:10 PM To: [EMAIL PROTECTED] Cc: Boutelle, Jonathan Subject: Re: extracting text elements using xpath and xalan This question is a generic XPath question, not specific to Xalan. >I'm trying to extract a text element (the string "Response") from an >xml doc... >My xpath (which doesn't work) is as follows: > /RoutingInfo/MessageType/child::* Try /RoutingInfo/MessageType/child::text() This is the bit where it says * selects only nodes whose kind is the "principal node type", which is element on the child:: axis. .................David Marston
