Just out of curioisty :-) Why are you doing this?
Rajesh Jayabalan wrote:
> Hi,
>
> Thanks Tracy,
>
> For reference here is what I did
>
> function setMrData(event): Void
> {
> dataObject.removeAllItems();
> for (var i=0;i<event.result.mrRequestData.Item.length;i++)
> {
> var myObj = new Object();
> myObj.id = event.result.mrRequestData.Item[i].id;
> myObj.name = event.result.mrRequestData.Item[i].name;
> myObj.description = "";
> myObj.image = event.result.mrRequestData.Item[i].image;
> myObj.spec = event.result.mrRequestData.Item[i].spec;
> myObj.price = event.result.mrRequestData.Item[i].price;
> myObj.qty = event.result.mrRequestData.Item[i].qty;
> myObj.mrId = event.result.mrRequestData.Item[i].MrId
> dataObject.addItemObj(myObj);
>
> }
> }
>
> Regards
> Rajesh J
> --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
> > That is what I mean, it depends on the xml structure. That is why you
> > need to be able to inspect it live. Otherwise you will need to guess.
> >
> > If I were guessing, I would say that the dataProvider would be need to
> > be set to:
> > result.mrREquestData.Item
> >
> > and each dataProvider item would be an object with properties: ItemId,
> > ItemDescription, etc, each property with the value of the textNode.
> >
> > Tracy
> >
> > -----Original Message-----
> > From: [email protected] [mailto:[EMAIL PROTECTED] On
> > Behalf Of Rajesh Jayabalan
> > Sent: Friday, July 22, 2005 3:19 PM
> > To: [email protected]
> > Subject: [flexcoders] Re: Http result into Objects
> >
> > Hi,
> >
> > Do you know what the result object might look like?
> >
> > Rajesh J
> >
> > --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
> > > HTTPService does this automatically for you if you do not specify a
> > > resultFormat, or if you specify resultFormat="object".
> > >
> > > The tricky part is figuring out exactly what the result Object's
> > actual
> > > structure is. Us a result handler, and a debugger to examine the
> > result
> > > object.
> > >
> > > Tracy
> > >
> > > -----Original Message-----
> > > From: [email protected] [mailto:[EMAIL PROTECTED]
> > On
> > > Behalf Of Rajesh Jayabalan
> > > Sent: Friday, July 22, 2005 2:46 PM
> > > To: [email protected]
> > > Subject: [flexcoders] Http result into Objects
> > >
> > > Hi,
> > >
> > > I have a HTTPService which return an xml
> > >
> > > <?xml version="1.0" encoding="utf-8" ?>
> > > <mrRequestData>
> > > <Item>
> > > <ItemId>2</ItemId>
> > > <ItemDescription>Football</ItemDescription>
> > > <ItemSpecifications>Size: Small, Color: Red</ItemSpecifications>
> > > <ItemQuantity>1</ItemQuantity>
> > > <MrId>2</MrId>
> > > </Item>
> > > <Item>
> > > <ItemId>3</ItemId>
> > > <ItemDescription>icecream</ItemDescription>
> > > <ItemSpecifications>Size: Small, Color: Red</ItemSpecifications>
> > > <ItemQuantity>1</ItemQuantity>
> > > <MrId>2</MrId>
> > > </Item>
> > > <Item>
> > > <ItemId>6</ItemId>
> > > <ItemDescription>owen</ItemDescription>
> > > <ItemSpecifications>Size: Small, Color: Red</ItemSpecifications>
> > > <ItemQuantity>1</ItemQuantity>
> > > <MrId>2</MrId>
> > > </Item>
> > > </mrRequestData>
> > >
> > > I need to convert this into array of Item objects.
> > > I have trying to see how to use XMLDecode but so far not seen any
> > > examples, can anyone point me in the right direction.
> > >
> > > Regards
> > > Rajesh J
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
> * Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders>" on the web.
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/