Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> XML Problem z tagiem..., XML Problem z tagiem...
Ardo
post 13.12.2011, 17:41:26
Post #1





Grupa: Zarejestrowani
Postów: 88
Pomógł: 0
Dołączył: 16.03.2008

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


Jak można pobrac dane z xml

kożytam z
  1. $product = simplexml_load_file ($hurtownia[0]);

Niestety wyskakuje błąd przy zaciąganiu danych:
Warning: simplexml_load_file() [function.simplexml-load-file]: ofertyZip/dane.xml:54: parser error : StartTag: invalid element name In
Warning: simplexml_load_file() [function.simplexml-load-file]: <1>true</1> in ...
Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in ...
Warning: simplexml_load_file() [function.simplexml-load-file]: ofertyZip/dane.xml:54: parser error : expected '>' in
Warning: simplexml_load_file() [function.simplexml-load-file]: ofertyZip/dane.xml:54: parser error : Opening and ending tag mismatch: zdjecia line 53 and unparseable in

wers 53 w XML to:
  1. <record>
  2. <zdjecia>
  3. <1>true</1>
  4. <2>true</2>
  5. <3>true</3>
  6. <4>true</4>
  7. <5>false</5>
  8. <6>false</6>
  9. <7>false</7>
  10. <8>false</8>
  11. <9>false</9>
  12. <10>false</10>
  13. <11>false</11>
  14. <12>false</12>
  15. <13>false</13>
  16. <14>false</14>
  17. <15>false</15>
  18. </zdjecia>
  19. </record>


W jaki sposób można zaciągnąć dane, bo na tym Tagu się pobieranie wywala. Proszę o pomoc jak to można zaciągnąć.
Go to the top of the page
+Quote Post

Posty w temacie


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: 18.07.2025 - 04:41