Connecting Tech Pros Worldwide Help | Site Map

xmldoc on Firefox

  #1  
Old June 7th, 2006, 01:55 AM
skastro
Guest
 
Posts: n/a
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?

  #2  
Old June 7th, 2006, 12:55 PM
Martin Honnen
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML file load for FireFox robudo answers 3 September 19th, 2007 08:04 PM
Problem Reading XML File with Firefox awolfe76 answers 1 April 17th, 2007 10:36 AM
XML file access not working in Firefox laramie.hartmann@gmail.com answers 6 October 12th, 2006 06:45 PM
Problem with .innerHTML, AJAX and Firefox tcole6@gmail.com answers 4 July 5th, 2006 01:25 PM