XML Test- Java codes