in reply to Re^2: Extraction of value with XMLLIB
in thread Extraction of value with XMLLIB

I don't understand. Are you requesting the count feature to exist in LibXML? My first example shows it exists already.

There was no NAME in your original question, only SNAME. There's only one SNAME per CLT, so it's not clear what output you want.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: Extraction of value with XMLLIB
by shak (Initiate) on May 06, 2015 at 12:20 UTC
    I was not aware of "count(preceding-sibling)" function ,your code just worked fine. I tried google what are the different option available in LibXML but could not find can u help me on that. If wanted the output some thing like VAL1,NAME,0 VAL1,NAME1,0 VAL2,NAME,0 VAL2,NAME1,0