[xml] Re: clarification about "empty" text nodes



oliverst online de wrote:
I got a function, which gets a node and reads the content of it. The
problem is, that in some cases it might be a node, that has no text. In
that case I get the whole tree as formated text, because libxml2 stores
such formatting chars in the "empty" text nodes. And because that
content of the text nodes isn't empty I can just verify an empty text
node, when I check the first char of "content" for 0x0a. Is that right?

Function: xmlIsBlankNode
 int xmlIsBlankNode (xmlNodePtr node)

Or am I misunderstanding something?

Ciao,
Igor




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]