Actually I want to pass the xml stanza that is <iq type='invisible />
however for different xml stanza like <iq from='
som...@gmail.com" to="
som...@yahoo.com> child elements </iq>
so to pass this i use this
NSXMLElement *iq=[NSXMLElement elementWithName:@"iq"];
[iq addAttributeWithName:@"from" stringValue:@"
som...@gmail.com"];
[iq addAttributeWithName:@"to" stringValue:@"
som...@yahoo.com"];
[self.xmppStream sendElement:presenceaway];
so the matter of face it gives the output with two tags <iq> </iq> and the elements between it or inside it.
But now I want just one tag and addAttribute in it <iq type='invisible' /> and it should end in the same tag. How to to this?
I know I'm missing something important, can anybody help me out?