Posts Tagged ‘nodes’

XSL to Output Elements, PCDATA, Attributes

Oct 31, 2008 at 5:58 pm, Jared Stein

Tony Hirst was looking for a way to output all XML element names and PCDATA in a document and show hierarchical relationships. I guessed this was easy, so I tried but initially failed. I searched for an answer and was surprised when I couldn’t find a good one. An hour later I worked out a solution based on parent::node() that seems stable on all XML files. (more…)