Googleing on the topic I've just found this hint:<br><br>[-- cite --]<br>
> I have data within an xml tag that is being truncated when being read<br>
> into a javascript variable. On Firefox, I am only getting up to 4096<br>
> characters. On IE, I am getting 31324 characters. I can view the xml<br>
> source, all the data is there. I am using javascript function<br>
> getElementsByTagName to read the data from the tag and then the<br>
> firstChild and nodeValue notations to get the data.[/color]<br>
<br>
<br>
Mozilla's XML parser is known to create a single text node for each<br>
chunk of 4096 characters so there you will certainly encounter the<br>
problem. The data is not lost however, you will simply end up with an<br>
element in the DOM that has several text child nodes.<br>
Workarounds are using e.g.<br>
xmlDocument.getElementsByTagName('tagname')[0].textContent<br>
instead of accessing firstChild and its nodeValue or to force<br>
normalization of the XML document by calling<br>
xmlDocument.normalize()<br>
first, then you can access firstChild.nodeValue as adjacent text nodes<br>
have been merged into one node.<br>
Note that the textContent property is part of W3C DOM Level 3 and only<br>
newer Mozilla versions support that property.<br>
<br>[-- end cite --]<br><br>I will try, but not immediatly. The idea is to change the line:<br><br> text = domElement.firstChild.data;<br><br>in method kaXmlFeature.prototype.parseElement<br><br><br><br><div><span class="gmail_quote">
2007/2/11, Ionut Muntean <<a href="mailto:ionut@muntean.ro">ionut@muntean.ro</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank's Pg.<br><br>This was the problem. The XML parser cannot handle the length of the<br>linestring definition. I've splitted the linestring definition into more<br>linestrings and everything is working ok now.<br>
<br>Now, for programatically build linestrings, is there any possibility to<br>"grow" the linestring? I want to plot the track of a vehicle.<br><br>/ IM<br><br><br><br>Pg wrote:<br>> The example is not fully accessible.
<br>><br>> In any case the error is apparently due to the length of the line: the<br>> XML parser truncates the coordinates text.<br>> I don't know how to correct this problem.<br>><br>> I can suggest a workaround: split the linestring in more chunks.
<br>><br>> - Pg<br>><br>> 2007/2/10, Ionut Muntean <<a href="mailto:ionut@muntean.ro">ionut@muntean.ro</a> <mailto:<a href="mailto:ionut@muntean.ro">ionut@muntean.ro</a>>>:<br>><br>> With only the point (icon) everything is ok. Please try
<br>> <a href="http://eos.mitechnologies.ro">http://eos.mitechnologies.ro</a> as example<br>><br>> Pg wrote:<br>> > I haven't other ideas.<br>> > I use the same environment for long lines, and it works.
<br>> ><br>> > Do you have an example accessible on internet?<br>> ><br>> > If not could you check (e.g. with an alert or with FireBug) if the<br>> > return value of the function _BrowserIdent_newCanvas() is valid
<br>> or is null?<br>> ><br>> > If you plot only the bullet ("Auto 1" in your XML), does it works?<br>><br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> ka-Map-users mailing list<br>> <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">
http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br><br></blockquote></div><br>