<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="userRequest.send()">
<mx:HTTPService id="userRequest" url="http://localhost:8080/DbToXml/ReadData" useProxy="false" method="GET">
</mx:HTTPService>
<mx:Form x="22" y="10" width="493">
<mx:HBox>
<mx:Label text="Employee Id"/>
<mx:TextInput id="eid" text ="{dgUserRequest.selectedItem.eid}" />
</mx:HBox>
<mx:HBox>
<mx:Label text="Employee Name"/>
<mx:TextInput id="ename" text="{dgUserRequest.selectedItem.ename}" />
</mx:HBox>
</mx:Form>
<mx:DataGrid id="dgUserRequest" x="22" y="128" dataProvider="{userRequest.lastResult.employees.employee}" selectedIndex="1">
<mx:columns>
<mx:DataGridColumn headerText="Employee Id" dataField="eid"/>
<mx:DataGridColumn headerText="Employee Name" dataField="ename"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>