[JDEV] Re: xmlnode_xxx() probs

Raditha Dissanayake jabber at raditha.com
Mon Sep 16 01:09:16 CDT 2002


Hi
Brad i have played around a bit with these function but haven't run into 
this particular problem. But that doesn't mean it does not exist :-) Can you 
send a sample of your xml to this list please. 

Brad writes: 

> I've been working on an in-process component and have found some peculiarity with the xml parser used by jabbber.  It seems that if there are any <CR>s or spaces between tags that get sent by a client then the xmlnode_get_xxx() functions end up returning NULL much of the time.  Is this a known problem with the jabber xml parser and if so, how does everybody work around this problem? 
> 
> What I'm trying to do is call xmlnode_get_firstchild() and then loop through all the children  with xmlnode_get_nextsibling() until i get no more children.  I thought I could do this by testing for a NULL ptr being returned, but as mentioned above that isn't working. 
> 
> Brad 
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
 


 --------------------
raditha dissanayake
raditha at raditha.com 




More information about the JDev mailing list