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
xml w/o linefeeds. How to break up?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
xml w/o linefeeds. How to break up?
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: xml w/o linefeeds. How to break up?
LiveCode variables use 32-bit addresses, so any amount of data <~4.2 GB should be fine.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.
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: xml w/o linefeeds. How to break up?
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 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!