@@ -0,0 +1,1014 @@
+%0Aimport org.xmlpull.v1.XmlPullParser;%0Aimport org.kxml2.io.KXmlParser;%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.InputStreamReader;%0A%0A// (C) Michael Walker, sun.com%0A%0Apublic class LongStringTest%09%7B%0A%0A%09    %0A%09    public static void main(String%5B%5D args) %7B%0A%09%09%09String xmlStr =  %22%3Cstart%3E%22%0A%09%09%09%09+ %22%3CThisIsALongTagName/%3E%22%0A%09%09%09%09+ %22%3CThisIsALongTagName/%3E%22%0A%09%09%09%09+ %22%3CThisIsALongTagName/%3E%22%0A%09%09%09%09+ %22%3CThisIsALongTagName/%3E%22%0A%09%09%09%09+ %22%3CThisIsALongTagName/%3E%22%0A%09%09%09%09+ %22%3CThisIsALongTagName/%3E%22%0A%09%09%09%09+ %22%3C/start%3E%22;%0A%09%09System.out.println(%22xmlStr length: %22 + xmlStr.length());%0A%0A%09%09ByteArrayInputStream bais = new ByteArrayInputStream(xmlStr.getBytes());%0A%09%09InputStreamReader isr = new InputStreamReader(bais);%0A%0A%09%09try %7B%0A%09%09    KXmlParser parser = new KXmlParser();%0A%09%09    parser.setInput(isr);%0A%09%09    while (parser.next() != XmlPullParser.END_DOCUMENT) %7B%0A%09%09%09if (parser.getEventType() == XmlPullParser.START_TAG) %7B%0A%09%09%09    System.out.println(%22start tag: %22 + parser.getName());%0A%09%09%09%7D%0A%09%09    %7D%0A%09%09%7D catch (Exception ex) %7B%0A%09%09    ex.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

test by michael walker added