Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php]Problem z parserem XMLReader() .. wyświetla błąd:, "Warning: XMLReader::read() [xmlreader.read]: input conversion fai
kukix
post 6.11.2012, 11:09:37
Post #1





Grupa: Zarejestrowani
Postów: 600
Pomógł: 2
Dołączył: 1.09.2002
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Witam.

Mam pewien problem z parserem zbudowanym na XMLReader();

Cytat
Warning: XMLReader::read() [xmlreader.read]: input conversion failed due to input error, bytes 0x81 0x75 0x73 0x7A in /users/design/www/parser.php on line 115

Warning: XMLReader::read() [xmlreader.read]: input conversion failed due to input error, bytes 0x81 0x75 0x73 0x7A in /users/design/www/parser.php on line 115

Warning: XMLReader::read() [xmlreader.read]: An Error Occured while reading in /users/design/www/parser.php on line 115


Domyślam sie, że "0x81 0x75 0x73 0x7A" to wskazanie miejsca problemu z pliku xml, jednak nie potrafię tego rozpracować.

  1. $encoding = 'windows-1250';
  2.  
  3. $reader = new XMLReader;
  4. $reader->open("dane.xml", $encoding);
  5. $doc = new DOMDocument;
  6.  
  7. while ($reader->read()){//////// LINIA 115
  8.  
  9. }//end while


Co może być przyczyną tego problemu? Prosze o jakies nakierowanie.

Czy plik xml zawiera jakies niedozwolone znaki?

Ten post edytował kukix 6.11.2012, 12:01:27
Go to the top of the page
+Quote Post
roghatt
post 6.11.2012, 14:37:57
Post #2





Grupa: Zarejestrowani
Postów: 250
Pomógł: 11
Dołączył: 20.03.2006

Ostrzeżenie: (0%)
-----


otwórz sam plik xml w przeglądarce i Ci wywali konkretnie gdzie jest w nim błąd jeśli jakiś w nim jest.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 25.07.2025 - 09:57