xml w/o linefeeds. How to break up?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

xml w/o linefeeds. How to break up?

Post by Simon » Mon Mar 18, 2013 12:47 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

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

Post by FourthWorld » Mon Mar 18, 2013 1:02 am

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

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

Post by Simon » Mon Mar 18, 2013 1:13 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply