title: kxml is giving a xmlpullparser exception
body: <p>I checked SO for the xmlpullparser exception but it's giving me others questions with Android and SOUP. I am using J2me and normal HTTPrequest to get my XML and I am using kXMl to parser  the xml text. Below is the code that I am working on. And above it is more parsing code and they work perfectly.</p>
  
  <pre><code>if (parser.getName().equals("comments")) {
  
                          event = parser.next();
                          boolean flag = false;
                          if (parser.getName().equals("comment")) {
                              flag = true;
                              System.out.println("Flag is true");
                          }
                          while (flag) {
                              event = parser.next();
                              Questioncomments.addComponent(new Label(parser.nextText()));
                              event = parser.next();
                              System.out.println("Inside the While");
                              if (!parser.getName().equals("comment")) {
                                  flag = false;
                                  System.out.println("Flag is false");
                              }
                          }
                          Questioncomments.repaint();
                      }
  </code></pre>
  
  <p>XML I am sending this side - <code>&lt;comments&gt;&lt;comment&gt;Awesome Question @dulitha&lt;idComment&gt;&lt;/idComment&gt;&lt;/comment&gt;&lt;/comments&gt;</code></p>
  
  <p>The error is - </p>
  
  <blockquote>
    <p>org.xmlpull.v1.XmlPullParserException: precondition: START_TAG
    (position:TEXT Awesome Question...@1:399 in
    java.io.InputStreamReader@f828ed68) 
            at org.kxml2.io.KXmlParser.exception(+47)
            at org.kxml2.io.KXmlParser.nextText(+14)
            at
    com.petmill.mobile.view.qanda.QuestionCanvas.setData(QuestionCanvas.java:189)
            at
    com.petmill.mobile.view.qanda.QuestionsList$5$1$1.actionPerformed(QuestionsList.java:119)</p>
  </blockquote>
  
  <p>The error comes up at the line where I am trying to get the text - parser.nextText(). How can I parse the xml to get the data required... Thanks in advance. </p>