Dear friends, I'm using Xalan 1.1 for extracting text from my xml using xpath expression.
I would like to know how I can extract a whole sub-tree as text. Until now, I had documents that look something like this: <A> <B> my_data </B> </A> And I used the expression "/A/B/text()" in order to extract the text "my_data". Now, I need to extract several nodes (not text nodes) as text. For example: <A> <B> <C> my_data</C> <D> my_other_data </D> </B> </A> I would like an expression that extracts all the <B> sub-tree as text: "<B><C>my_data</C><D> my_other_data </D></B>" I think it has something to do with the "string()" function, but I'm not sure how to use it. Thank you, Ori Doolman,