couldn't (shouldn't?) you just do an XMLParse() on the XML document in
question tho?


On Thu, 10 Feb 2005 09:01:16 -0500, Charlie Griefer
<[EMAIL PROTECTED]> wrote:
> without really knowing the specs, seems as if you'd want an array
> within the find_business.generic struct/key.
> 
> find_business.generic = arrayNew(1);
> find_business.generic[1] = "ABC Co.";
> find_business.generic[2] = "XYZ Co.";
> ....
> etc
> 
> 
> On Thu, 10 Feb 2005 08:55:04 -0500, Doug James <[EMAIL PROTECTED]> wrote:
> > Please help, my forehead is very red and painful from banging against the 
> > wall over this one.
> >
> > Given this XML snippet:
> > <find_business generic="2.0" maxRows="10">
> >         <name>ABC Co.</name>
> > </find_business>
> >
> > This struct accurately represents <find_business> with the "generic" and 
> > "maxRows" attributes.
> > find_business = structNew();
> > find_business.generic = "2.0";
> > find_business.maxRows = "10";
> >
> > What I can't figure out is how to get <name> into the structure. If I do 
> > find_business.name = "ABC
> > Co."; that is making the name an attribute but I need it as an element.
> >
> > Any suggestions?
> >
> > Doug James
> > Hollings Cancer Center
> >
> > 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194039
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to