Home Forums General XMetaL Discussion Not able to access textnodes per XPath expression Reply To: Not able to access textnodes per XPath expression

spyro

Reply to: Not able to access textnodes per XPath expression

Hello dcramer,

you're right, of course. I forgot this to add this to my post here in the first case (I've corrected that know). My problem is, that exactly this expression “//element[2]/text()” doesn't give me the expected result.

Furthermore I am not able to correctly address the content within element 1 with the expression “//element[1]//text()” which should deliver 2 textnodes (“Hello ” and “world!”) instead of an empty element.

spyro

Reply

Products
Downloads
Support