Net-XMPP - GetQueryXMLNS problem.

Posted on Sat May 5 23:00:54 2007 by corptitan
GetQueryXMLNS problem.
Greetings, i am not sure if this is bug or feature, but:
when my program received :
<iq type="get" from="user_name@server.ltd/resource" id="abf3a" > <query xmlns="jabber:iq:version"/> </iq>
and i saved this message via :
$Connection->SetCallBacks( iq => \&Incomming_Iq ); sub Incomming_Iq { # FUNCTION FOR INCOMMING IQs my $sid = shift; my $message = shift; my $test1 = $message->GetQueryXMLNS(); print "test1=", $test1,"=\n"; # It prints: "test1==" # And now, if i really wants QueryXMLNS i must type: $message->GetQuery(); my $test2 = $message->GetQueryXMLNS(); print "test2=", $test2,"=\n"; # NOW it prints: "test2=jabber:iq:version=" };
and why is $test1 empty and $test2 is ok? It is due to $message->GetQuery(); , but i did not found this in documentation. Is this normal behavior or it is a bug? I am new in perl,so i apologize if this is stupid question, and for my very bad English.
Write a response