title: Sending a custom IQ query (Android)(Smack)
body: <p>Format of result will be this.</p>
  
  <pre><code>&lt;iq from='52@localhost' to='20@localhost/Gajim' id='253' type='result'&gt;
  &lt;query xmlns='someName'&gt;
  &lt;item subscription='both' jid='1@localhost'/&gt;
  &lt;/query&gt;
  &lt;/iq&gt;
  </code></pre>
  
  <p>I am trying to send a custom iq query with the following format.</p>
  
  <pre><code> &lt;iq xmlns="Name" type="get" id="253"&gt;
      &lt;query xmlns="someName"&gt;
      &lt;auth type='token'&gt;asd&lt;/auth&gt;
      &lt;/query&gt;
      &lt;/iq&gt;
  </code></pre>
  
  <p>From this I understand that I need to send a query with a authorization type token(token id ). Here is my try at that.</p>
  
  <pre><code>final IQ iq = new IQ() {  
    @Override  
    public String getChildElementXML() {  
      return "&lt;query xmlns='someName'auth type="+t_id"+"asd&lt;................'&lt;/query&gt;"; // I am confused on how to write here  
    }  
  };  
  iq.setType(IQ.Type.get);  
  connection.sendPacket(iq); // connection is an XMPPTCPConnection object.
  </code></pre>
  
  <p>I am confused on how to complete this getChildElementXML() and furthermore I get an error when I try to instantiate a new IQ because I need to implement some builder method. Should I create a new class for sending custom IQ queries?Can someone show how to do it?</p>
  
  <p>Note: Constructive feedback is appreciated, I can make the question clearer if someone points out an ambiguity.</p>