View Full Version : Xml Binding
kminev
07-01-2008, 09:38 PM
How can I bind xml to combo box?
I can't use e4x format. I have my xml loaded from a string of elements which in turn is coming from a web service.
If anyone can perhaps provide a link with tutorial on how to process xml, array collection and so forth would be a great asset to me.
Thank you.
box86rowh
07-01-2008, 09:42 PM
if the end result is xml, you should be able to use e4x to transverse the xml. Are you loading the xml with an httpservice? if so, just bind it with nameOfHttpService.lastResult.nodes.node
where nodes in the name of the parent and node is the children, if I saw your xml data structure I could be more exact
kminev
07-01-2008, 10:13 PM
The problem is that I am not using HttpSerivce, but instead I am using WebService by extending the webservice class and then creating proxy to communicate with my web service.
Technically I am receiving my XML in a simple String Object and from that point I need to bind that information to combo box.
kminev
07-01-2008, 10:50 PM
This is the xml structure:
<Accounts> <Acc> <Name>A1</Name> <ID>7</ID> </Acc> <Acc> <Name>MIKIEMOUSE</Name> <ID>8</ID> </Acc> <Acc> <Name>U1</Name> <ID>9</ID> </Acc> <Acc> <Name>G2</Name> <ID>10</ID> </Acc> <Acc> <Name>AVK</Name> <ID>11</ID> </Acc> <Acc> <Name>FMT</Name> <ID>13</ID> </Acc> <Acc> <Name>TDM</Name> <ID>14</ID> </Acc> <Acc> <Name>7Ticks</Name> <ID>15</ID> </Acc> </Accounts></
Thank you.
kminev
07-02-2008, 02:47 PM
Problem solved, thank for everyone for looking at my post. My problem was that the xml structure was messed up.
Thanks
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.