Page 1 of 1

xml w/o linefeeds. How to break up?

Posted: Mon Mar 18, 2013 12:47 am
by Simon
Hi,
OK, let me jump right in and say the XML is returned from a "Put url" and I recall that LC can have no more than 64K characters in a single line. At the moment the xml is just a few thousand characters so it's working but I can easily see it going over the 64K.

I'm retrieving the data from an API.

Is there a header setting or something like that to breakup the xml?


Thanks,
SImon

Re: xml w/o linefeeds. How to break up?

Posted: Mon Mar 18, 2013 1:02 am
by FourthWorld
Simon wrote:OK, let me jump right in and say the XML is returned from a "Put url" and I recall that LC can have no more than 64K characters in a single line. At the moment the xml is just a few thousand characters so it's working but I can easily see it going over the 64K.
LiveCode variables use 32-bit addresses, so any amount of data <~4.2 GB should be fine.

The chars-per-line limit only affects two things:
- the functionality of sort operations on the collection
- the cosmetic appearance of the line which exceeds that

In all other respects it should pose no problem. And since you'll not likely be sorting the XML nor needing to display the raw XML as a single line, I suspect this limit shouldn't be a problem in your situation at all.

Re: xml w/o linefeeds. How to break up?

Posted: Mon Mar 18, 2013 1:13 am
by Simon
Thanks Richard,
I see now that I got the 64K from number of characters allowed per line in a field -Not a variable.
Good.

Simon