[xml] Get element tail

2013-10-23 Thread Bogdan Cristea
Hi I am trying to follow lxml from Python that allows to get the text after the end of an element, but before the next element begins (i.e. the next sibling of the current element). I am able to do this with xmlTextReader, by obtaining a pointer from the current node (when the node type is EL

Re: [xml] Get text content of an element which surrounds another element

2013-10-23 Thread Nikolay Sivov
On Mon, Oct 21, 2013 at 11:50 AM, Bogdan Cristea wrote: > On 10/20/2013 06:53 PM, Nikolay Sivov wrote: > >> On 10/20/2013 19:13, Bogdan Cristea wrote: >> >>> First, I am puzzled by the way I can obtain the text contained by h1 >>> element. I am using the node from a previous xmlTextReaderRead() c

Re: [xml] Get text content of an element which surrounds another element

2013-10-23 Thread Bogdan Cristea
On 10/23/2013 05:55 PM, Nikolay Sivov wrote: Hah, so you're saying that first XML_READER_TYPE_TEXT gives you not-null pointer with xmlTextReaderCurrentNode()? And this returned node contains concatenated text from first and last children of 'h1'? That strange. No, when I call xmlTextReaderCur