unmk2 / jaxl

Automatically exported from code.google.com/p/jaxl
GNU General Public License v3.0
0 stars 0 forks source link

Jaxl didn't handle correctly node items #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Send an items request to a Pubsub Node
<iq type="get" id="24" to="pubsub.someserver.com" 
from="edhelas@movim.eu/jaxl.1.1307346553">
    <pubsub xmlns="http://jabber.org/protocol/pubsub">
        <items node="blog"/>
    </pubsub>
</iq>

2. Jaxl handle correctly the stanza
<iq id='items1' type='result' 
to='edhelas@movim.eu/7f231c2d-ecf6-4c93-94b9-2d26a1177a71' 
from='pubsub.someserver.com'>
    <pubsub xmlns='http://jabber.org/protocol/pubsub'>
        <items node='blog'>
            <item id='1'>
                <entry xmlns='http://www.w3.org/2005/Atom'>
                    <title>Premier billet</title>

                    <author>....

What is the expected output? What do you see instead?

I expect to handle each items correctly in an array with the node description, 
what I've got is a little array

array(5) {
  ["to"]=>
  string(34) "edhelas@movim.eu/jaxl.1.1307346553"
  ["from"]=>
  string(18) "psgxs.linkmauve.fr"
  ["id"]=>
  string(2) "25"
  ["type"]=>
  string(6) "result"
  ["xml:lang"]=>
  NULL
}

What version of the product are you using? On what operating system?
Jaxl v2.1.2, on Xubuntu 11.04

Please provide any additional information below.

It will be great if the returned array will look like this :

array(flux) {
    array(description) { [some elements]
    }
    array(items) {
        array(1) { [title], [author], [date]...
        }
        array(2) { [title], [author], [date]...
        }
        ...
    }
}
and respect the XML structure :)

Thanks,

edhelas

Original issue reported on code.google.com by edhe...@gmail.com on 6 Jun 2011 at 8:48

GoogleCodeExporter commented 9 years ago
Hello Friends,

I am no longer accepting issues/bugs on google code issue list.

Have any Question? Want to discuss? Need Help? Use Google Group/Forum.
https://groups.google.com/forum/#!forum/jaxl

Found something missing or a bug in the source code? Kindly report an issue.
https://github.com/abhinavsingh/JAXL/issues

Sorry for any inconvenience caused.

--
Abhinav

Original comment by mailsfor...@gmail.com on 12 Sep 2012 at 9:51