Java tutorial
//package com.java2s; import javax.xml.stream.XMLStreamReader; public class Main { public static void printText(XMLStreamReader xmlr) { if (xmlr.hasText()) { System.out.print(xmlr.getText()); } } }