This Example Describes the way of retrieving XML file Data from the server using GWT. The basic building block for running this example which we are describing below is explained here in stepwise:-
Step1:-Create a java File named SimpleXML.java.
Put this File in the package
com.google.gwt.sample.simplexml.client.
SimpleXML.java
package com.google.gwt.sample.simplexml.client;
|
Step2:-Create a xml file named customerRecord.xml.
customerRecord.xml
<?xml version="1.0" encoding="US-ASCII"?>
|
Step3:-Create html file named SimpleXML.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
Another way for running this example is to
download this example, Extract it and put the extracted folder in the GWT directory. Place
this extracted folder in the samples directory of the GWT toolkit. Just double
click on the cmd SimpleXML-shell.cmd to view the
output of the program.
output of the program

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Retrieving XML Data Using GWT
Post your Comment