Hi!
I'm using GWT RPC to retrieve a XML from server, this XML is the datasource data file.
How to fill the datasource with this XML?
I have something like:
It's into a String variable, how to pass it to DataSource?
I found how to do it by DataSource.setDataURL(dataURL), but I already have the XML in the client.
Thanks in advance!
I'm using GWT RPC to retrieve a XML from server, this XML is the datasource data file.
How to fill the datasource with this XML?
I have something like:
Code:
<?xml version="1.0" encoding="UTF-8"?> <countries> <country> <idCountry>1</idCountry> <code>US</code> <name>United States</name> </country> ... <country> <idCountry>2</idCountry> <code>BR</code> <name>Brasil</name> </country> </countries>
I found how to do it by DataSource.setDataURL(dataURL), but I already have the XML in the client.
Thanks in advance!
Comment