Skip to Content
0
Oct 06, 2006 at 01:32 PM

XMLHttpRequest preculiarity

48 Views

Has anyone else come across problems reading RSS (RDF) feeds with XMLHttpRequest.

When I try to access the ABAP feed for the SDN Weblogs I see that XMLHttpRequest.responseText has some entity characters missing that were received. I can determine that they were received using 'tcpdump -A -s1024' (don't you love that OS X is built on linux).

// The response XML is dying on the PEReference with

// 2006-10-05 15:15:59.125 Safari[492] Value error on line 6 at column 13: PEReference: HTMLlat1; not found

// even though response.responseText:

// <!DOCTYPE rdf:RDF [

// <!ENTITY TMLlat1 PUBLIC

// "-//W3C//ENTITIES Latin 1 for XHTML//EN"

// "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">

// HTMLlat1;

// ]>

// The sniffer shows:

// <?xml version="1.0"?>

// <!DOCTYPE rdf:RDF [

// <!ENTITY % HTMLlat1 PUBLIC

// "-//W3C//ENTITIES Latin 1 for XHTML//EN"

// "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">

// %HTMLlat1;

// ]>

You can see in the ENTITY that '# H' is missing.

I will explore some options on XMLHTtpRequest to see if I can clear this up.

JohnA