xml ws contain one string with no tags
<p>I have an xml WebService URL that contain only this line"hi this invalid number"
I wanna read this line to my aandroid app at textView or alert msg 
I used the next code but it return nothing !!! is there any way to solve this issue?? </p>

<p>int eventType = xpp.getEventType();</p>

<pre><code>        while (eventType != XmlPullParser.END_DOCUMENT) {

                if (eventType == XmlPullParser.START_DOCUMENT) {

                    strData=xpp.nextText();         


               }else if(eventType==XmlPullParser.END_DOCUMENT){// &amp;&amp; xpp.getName().equalsIgnoreCase(tag)

                    insideItem=false;

                }

                eventType = xpp.next(); //move to next element



                //tx.setText(String.valueOf(x));


        }
    }catch (MalformedURLException e) {

        e.printStackTrace();

    } catch (XmlPullParserException e) {

        e.printStackTrace();

    } catch (IOException e) {

        e.printStackTrace();

    }catch (Exception e)
    {
        e.printStackTrace();

    }



    tx.setText(strData); 
</code></pre>
