Connecting Tech Pros Worldwide Forums | Help | Site Map

xmldoc on Firefox

skastro
Guest
 
Posts: n/a
#1: Jun 7 '06
Im having problems with the xmldoc returned by
XMLHttpRequest.responseXML.

alert(
xmldoc.getElementsByTagName('element')[0].firstChild.nodeValue.length
);

if the text is bigger than 4096 bytes, then the value returned is only
4096

how can I specify a bigger value?


Martin Honnen
Guest
 
Posts: n/a
#2: Jun 7 '06

re: xmldoc on Firefox




skastro wrote:[color=blue]
> Im having problems with the xmldoc returned by
> XMLHttpRequest.responseXML.
>
> alert(
> xmldoc.getElementsByTagName('element')[0].firstChild.nodeValue.length
> );
>
> if the text is bigger than 4096 bytes, then the value returned is only
> 4096[/color]

Do
var xmldoc = httpRequestInstance.responseXML;
xmlDoc.normalize();
then the adjacent text nodes in the XML document should be joined and
you should get the full text.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Closed Thread