Cytat
Błąd: uncaught exception: Node cannot be inserted at the specified point in the hierarchy (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)
Plik źródłowy: http://localhost/proj1/web/script/query/jquery-1.2.6.js
Wiersz: 238
Kod generujący XML wygląda tak:Plik źródłowy: http://localhost/proj1/web/script/query/jquery-1.2.6.js
Wiersz: 238
I przy wywołaniu zwraca:
<?php class Ajax { { $xml = new XMLWriter(); $xml->openURI('php://output'); $xml->startDocument('1.0', 'utf-8'); $xml->setIndent(true); $xml->setIndentString("\t"); $xml->startElement('error'); $xml->startElement('message'); $xml->writeAttribute('value', $msg); $xml->endElement(); $xml->endDocument(); $xml->flush(); } } ?>
Myślałem że błąd leży przy zamknięciu tagu <message> ale kiedy podmieniłem odpowiedź na:
<?xml version="1.0" encoding="UTF-8"?> <error> <message value="Podana strona nie istnieje"/> </error>
Problem pozostał ten sam. Nadal w konsoli Firefox'a widzę ten wyjątek.
<error> <message>Podana strona nie istnieje</message> </error>