Hi Jim,
Thanks for responding. Viewed in a field, (with 'dontWrap' set to true), the 
XML is as expected - a single, long string, without spaces or returns. Copying 
it into TextWrangler, I can't see anything unusual. 
I've now also checked that the XML within the variable (prior to putting into 
the field to read) contains no null characters. 
Bizarre!
Still, I'll keep prodding it & Googling for troubleshooting ideas!
Best,
Keith..

On 14 May 2011, at 16:14, Jim Ault wrote:

> On May 14, 2011, at 7:24 AM, Keith Clarke wrote:
>> I'm learning about XML & Arrays by attempting to process some web service 
>> call responses using the ConvertXMLToArray() in Trevor DeVore's XMLAndArrays 
>> library http://revonline2.runrev.com/stack/571/XMLAndArrays
>> 
>> The XML data looks fine to the human eye when put into a field, but the 
>> output array from the above function seems to be empty.
>> 
>> I noticed in the library's related TestXMLToArray function (which works on 
>> an imported file and then calls the above) that there is some pre-processing 
>> with "put URL ("binfile:" & it) into theXML" but I tried this without 
>> success.
>> 
>> Any clues as to what I've overlooked?
> 
> 
> There is one data source I found on the internet that I had to use the 
> following:
> 
> replace null with empty in outsiderDataBlock
> 
> The filter command fails if any null chars are in the text block.
> 
> Additionally, can you inspect the text block in something like BBEdit so you 
> can see any odd chars?
> 
> Jim Ault
> Las Vegas
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to