473,394 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

is there any limit on responseXML in mozilla?

Hello

sorry of omy pure english ;)
I think, that something wrong is in mozilla *FF 1,5,0,2*
I'm trying to parse a xml file http://bazarek.pl/txt/note.xml
by XMLHttpRequest method. In IE, Opera everything is OK, but in mozilla
if I use responseXML method, the string length more then 4096 is cutted
(note that xml is download whole, only when I want to use some element
for example:
xmlhttp.responseXML.getElementsByTagName('ProdList ').item(0).firstChil
d.data than in mozilla this string is cutted), but if I use
responseText - everything is working good (in 3 browsers).
pls check this site:

http://bazarek.pl/txt/text.html - responseText
http://bazarek.pl/txt/xml.html - responseXML

What is wrong?

--
best regards
Apr 22 '06 #1
2 4137


ErkA wrote:

I think, that something wrong is in mozilla *FF 1,5,0,2*
I'm trying to parse a xml file http://bazarek.pl/txt/note.xml
by XMLHttpRequest method. In IE, Opera everything is OK, but in mozilla
if I use responseXML method, the string length more then 4096 is cutted


That is a known issue with Mozilla's XML parsing, instead of putting
everything into one text node the parser builds text nodes for each
chunk of 4096 characters so in your example
responseXML.getElementsByTagName('ProdList')[0].childNodes.length
yields 4 for instance.
You need to call
responseXML.normalize()
to fix that or use
responseXML.getElementsByTagName('ProdList')[0].textContent
--

Martin Honnen
http://JavaScript.FAQTs.com/
Apr 23 '06 #2
Martin Honnen wrote:
responseXML.getElementsByTagName('ProdList')[0].textContent


THANK YOU INDEED. From friday I've been looking for solutions, and this
is working as I wanted! Thanks again!

--
Best regards!
Erka
Apr 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sanjay Dahiya | last post by:
I tried POSTing from XMLHttpRequest, i can get the XML right on server but responseXML from server is coming null. I can see the XML right in responseText. but responseXML is null. responseText to...
3
by: Alexander Mikhailian | last post by:
I have an http = new XMLHttpRequest(); that provides me with an http.responseXML. Somewhere deep in the http.responseXML there is a fragment called e.g. mydom that I want to copy with all its...
1
by: j_mckitrick | last post by:
Hi all, I'm making Ajax-type calls that return XML, and rather than parsing the XML with DOM and building the nodes by hand, it seems much better and well-designed to get the XML response, get...
27
by: ted benedict | last post by:
hi everybody, i hope this is the right place to discuss this weird behaviour. i am getting dynamically generated text or xml from the server side using xmlhttprequest. if the server side data is...
2
by: eschl | last post by:
Doesn't "prototype.js" support the "responseXML" property of the XMLHttpRequest object? var url = "test.jsp"; var pars = ""; var myAjax = new Ajax.Request(url, {method: 'get', parameters:...
7
by: KaNos | last post by:
Hello aspx world, I consume a webservice with Javascript functions. But the response is ok and, very strange, document is null. How to resolve this problem thanks ?????? ...
14
by: webEater | last post by:
I downloaded IE7 and tried out the native XMLHttpRequest support. I think there is an object in IE7 called "XMLHttpRequest" but I ask me why it is called "XML"HttpRequest. I made a request to an...
8
by: =?ISO-8859-1?Q?Une_B=E9v?==?ISO-8859-1?Q?ue?= | last post by:
I have a page here : <http://thoraval.yvon.free.fr/Fixed_layout/import_nodes.xhtml> where i import nodes using XMLHttpRequest. it's ok when importing an SVG file (click on "Actions" + "Import...
6
by: KDawg44 | last post by:
Hi, My responseXML is always null on my AJAX call. When I browse directly to the PHP script I am calling, the XML file shows up just fine. I have read that if a returned XML file is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.