java process Stream Character XML