[xml] About white spaces



Hello,

If I've got something like this:

<node>

   some text, bla bla bla

</node>

I wonder if there's any function that allows me to
retrieve a normalized string, thus:

"some text, bla bla bla"

I'm using libxml2, and nothing else, I'm just parsing
a xml data file with no DTD, and no stylesheet, and
the way I'm doing it is by traversing down the three,
tus:

while(cur!=NULL) {
  if((!xmlStrcmp(cur->name, (const xmlChar
*)"node-name"))) 
 .....

So I anyone could tell me something about that would
be great.

Kind Regards,



Send instant messages to your online friends http://uk.messenger.yahoo.com 



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