473,587 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.respons eXML.getElement sByTagName('Pro dList').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 4145


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.get ElementsByTagNa me('ProdList')[0].childNodes.len gth
yields 4 for instance.
You need to call
responseXML.nor malize()
to fix that or use
responseXML.get ElementsByTagNa me('ProdList')[0].textContent
--

Martin Honnen
http://JavaScript.FAQTs.com/
Apr 23 '06 #2
Martin Honnen wrote:
responseXML.get ElementsByTagNa me('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
13345
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 DOM conversion also fails while the XML in responseText seems valid .. -- here is the javascript code for sending --- { this.request.onreadystatechange = this.handleStateChange; if( this.request) {
3
8571
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 children to the document. document.getElementsByTagName('body').innerHTML=mydom; does not work. What should I do? Traverse mydom manually? Look for a JS library that does this already?
1
1774
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 an XSLT stylesheet, apply it to the XML, and insert the resulting node (containing an HTML table) into the document at a div. But I keep getting javascript errors about not being able to insert the document at this point in the hierarchy, and...
27
13027
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 STATIC, i can have whatever size of data i want. but if the data (xml or text) is generated dynamically using php, then there seems to be a size limit! xmlhttprequest's responseText is truncated, and the xml therefore not well fromed. in border...
2
6741
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: pars, onComplete: mycallback } );
7
5009
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 ?????? xmlHttpRequest.open("POST", myAddressLocation, false); xmlHttpRequest.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); xmlHttpRequest.send(xmldocumentSoapRequest);
14
6065
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 XML file (correctly sent with text/xml header) but IE7 returns the same shit as IE 5.5/6 when I use responseXML, an XML construct with a node "xml", which contains nothing. Firefox and Opera and Netscape 7.1 (yeah,) do it correctly. What's goin...
8
2613
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 SVG") but i get req.responseXML === null when trying to import a MathMl file why ? the file bernoulli.nml is ther...
6
9814
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 valid, it will always appear as null. I am just returning some basic XML like: <?xml version='1.0' encoding='UTF-8'?> <XMLData>
0
7924
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7854
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8219
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8349
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8221
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.