[JDEV] Re: xmlnode_xxx() probs
Brad
brad at the-zoo.net
Tue Sep 17 02:45:06 CDT 2002
<iq type="set" id="ab0ed" to="jud.domain.com" >
<query xmlns="jabber:iq:search" >
<name>brad</name>
</query>
</iq>
Note that there are actual carriage returns at the end of each line above.
Brad
> -----Original Message-----
> From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org]On Behalf Of
> Raditha Dissanayake
> Sent: Monday, September 16, 2002 01:09
> To: jdev at jabber.org
> Subject: [JDEV] Re: xmlnode_xxx() probs
>
>
> 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
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list