Hi
I try to parse an XML Document with the following commands:
response = http.responseXML.documentElement;
up_since =response.getElementsByTagName('up_since')[0].firstChild.data;
So I try to read out the value for up since, but then I get the error
message
Error: response.getElementsByTagName("up_since")[0] has no properties
Source File: http://localhost/BabysteptestXML.htm
Line: 28
The XML Document generated by my CGI PRogramm looks like this:
<?xml
version="1.0"?><engine_status><up_since>1124357455 </up_since><up_duration>16363</up_duration><connected_users>0</connected_users><active_users>0</active_users><allowed_users>1</allowed_users><verification_matrix><tr><td>sr</td><td>kj</td><td>bc</td><td>tg</td><td>pf</td></tr><tr><td>ph</td><td>gt</td><td>cq</td><td>fk</td><td>pk</td></tr><tr><td>hm</td><td>tc</td><td>rj</td><td>ee</td><td>tb</td></tr><tr><td>se</td><td>gs</td><td>fk</td><td>ag</td><td>hg</td></tr></verification_matrix><gateway_address>geldwolf2.tri spen.com</gateway_address><company>trispen</company><admin_email></admin_email></engine_status>
If I enter the codefragment:
alert(http.responseXML.documentElement.firstChild. nodeValue);
I got the error message: XML Parsing Error: xml processing instruction
not at start of external entity. Anyone encountered this problem before
and knows what it does mean?
Cheers for Hints!