Re: Problem parsing XML from a SOAP call
Re: Problem parsing XML from a SOAP call
- Subject: Re: Problem parsing XML from a SOAP call
- From: Tim Jarrett <email@hidden>
- Date: Thu, 21 Feb 2002 09:44:48 -0500
At 12:28 AM -0700 2/21/02, garbanzito wrote:
at 2002 02 20, 15:37 -0500, they whom i call Tim Jarrett wrote:
departmentname:{createdDate:timestamp, pictureshortcut:"picturename"}
just taking a crack at this, because i want to learn more
about using XML with AppleScript. what you are seeing
are records, which in AppleScript must be handled very
differently from lists.
I went for a browse after I sent the email and had an 'a-ha' moment
when I realized they were records. Browsing the list archives
afterwards pointed me to some excellent scripts by R23 that enabled
me to get the property names from the top level of my record, which
was exactly what I needed to get. I downloaded some of the supporting
stuff from his website (
http://homepage.mac.com/richard23/).
it does seem that you are getting data which could be better
structured. is this the kind of thing SOAP always returns? is it
a symptom of how AppleScript handles XML? or is it just how Manilla
is set up? i think it would be easier to work with if anything
not predetermined were a value within each record, such as:
{department:"america", pictureshortcut:"topicAmerica"}
Agreed. This is a Manila thing. Dave Winer has not to the best of my
knowledge documented this part of the Manila API in any detail and
has never documented the form in which the data is returned. I think
he'd get some comments regarding the lack of well-formedness of his
XML if he did. Other parts of the API, for example the return from
the various manila.message verbs, return much cleaner XML.
Thanks for your input
Tim
--
Tim Jarrett
email@hidden
http://www.mit.edu/~tjarrett/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.