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
