Implemented xml level reader for java