Agarici
asked on
max cdata size?
is there a limit for what a cdata contains in an xml?
if yes what is that limit?
thanks.
A.
if yes what is that limit?
thanks.
A.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
no,
but you would be looking for how the XML object used would store the CDATA as a node (or potentially multiple text nodes)
note that your limitation will likely not be the CDATA.
CDATA is pretty cheap to store compared to nested elements,
because it could be a simple one node(linear)
where as multiple nested nodes would have quite some indexing and referencing stored as well
so for the same # megabytes a CDATA section would be relatively cheap
.... and you don't want to send many megabytes to a browser, do you...
where does this question come from,
are you just cautious, or did you hit a wall somewhere?
cheers
but you would be looking for how the XML object used would store the CDATA as a node (or potentially multiple text nodes)
note that your limitation will likely not be the CDATA.
CDATA is pretty cheap to store compared to nested elements,
because it could be a simple one node(linear)
where as multiple nested nodes would have quite some indexing and referencing stored as well
so for the same # megabytes a CDATA section would be relatively cheap
.... and you don't want to send many megabytes to a browser, do you...
where does this question come from,
are you just cautious, or did you hit a wall somewhere?
cheers
ASKER
it is not just being cautious, i run into a problem...
i am executing a javascript (which is downloading a web page) with the mozilla engine, and it gives me some error if the page is larger than 64k... well actually the error seems to be from some processing made after the page is downloaded. and is not very sugestive... it is just saying that a sever error has happened.
i asked about the cdata because the downloaded page is stored into a cdata for later use
i'm pretty new to this code so i'll have to do a "litle" more research.
anyway, thanks for the help, i have just eliminated one possible cause for my error.
ty,
A.
i am executing a javascript (which is downloading a web page) with the mozilla engine, and it gives me some error if the page is larger than 64k... well actually the error seems to be from some processing made after the page is downloaded. and is not very sugestive... it is just saying that a sever error has happened.
i asked about the cdata because the downloaded page is stored into a cdata for later use
i'm pretty new to this code so i'll have to do a "litle" more research.
anyway, thanks for the help, i have just eliminated one possible cause for my error.
ty,
A.
ASKER
thanks for the reply,
do you know anything about how mozilla handles this problem? i am using a mozilla java script engine (spider monkey)
thanks,
A.