Connecting Tech Pros Worldwide Forums | Help | Site Map

xml parsing (SAX) buffer limits

sinister
Guest
 
Posts: n/a
#1: Jul 17 '05
Is there any good documentation of what sort of input buffer limits there
are for the expat parser used by PHP? I found out (by accident) that my
webhosting service's version has a 1024 byte limit.



Amir Khawaja
Guest
 
Posts: n/a
#2: Jul 17 '05

re: xml parsing (SAX) buffer limits


sinister wrote:
[color=blue]
> Is there any good documentation of what sort of input buffer limits there
> are for the expat parser used by PHP? I found out (by accident) that my
> webhosting service's version has a 1024 byte limit.
>
>[/color]
That sounds about right. You also have to remember that Expat uses
callback functions and reads data in blocks. This gives it an advantage
over DOM when reading large files. As long as your XML is file valid you
should not have problems.

--
Amir Khawaja.

----------------------------------
Rules are written for those who lack the ability to truly reason, But
for those who can, the rules become nothing more than guidelines, And
live their lives governed not by rules but by reason.
- James McGuigan
sinister
Guest
 
Posts: n/a
#3: Jul 17 '05

re: xml parsing (SAX) buffer limits



"Amir Khawaja" <amir@gorebels.net> wrote in message
news:PQyEb.29861$m83.9891@fed1read01...[color=blue]
> sinister wrote:
>[color=green]
> > Is there any good documentation of what sort of input buffer limits[/color][/color]
there[color=blue][color=green]
> > are for the expat parser used by PHP? I found out (by accident) that my
> > webhosting service's version has a 1024 byte limit.
> >
> >[/color]
> That sounds about right. You also have to remember that Expat uses
> callback functions and reads data in blocks. This gives it an advantage
> over DOM when reading large files. As long as your XML is file valid you
> should not have problems.[/color]

Thanks for your reply.

It was a problem insofar as the code that used the results assumed that
there would never be two blocks of character data in a row.

-S


Closed Thread