erledigt. Danke
XML Data auslesen problem
Einklappen
X
-
und falls genauere infos kommen, schon mal zum besser lesen
PHP-Code:<?php
$parser = xml_parser_create();
//create an instance of the XML parser
xml_set_element_handler($parser, "startElement", "endElement");
//define start and end functions here are
//startElement and endElenment
xml_set_character_data_handler($parser, "characterData");
//define what to do with the data. Again, “characterData”
//is a user-defined function, but this name is the convention.
//$xml_file="wetterinfo.xml";
$xml_file="http://www.donnerwetter.de/extern/div4/europ-assistance617-suche.xml?search=pad";
//define the xml file which will be read
$filehandler = fopen($xml_file, "r");//open the xml file
while ($data = fread($filehandler, 4096))
{
xml_parse($parser, $data, feof($filehandler));
}
/* reading the contencts of the file , 4k at a time.
put it in the variable “$data” until I reach the end of the file. I use
xml_parse to parse each chunk as I go. */
fclose($filehandler);
xml_parser_free($parser); //open and colse the parser
//....
?>**********
arkos
**********
Kommentar
-
Vielleicht hilft dir das : SimpleXML Functionens
Ansonsten =>@PHP-Desaster
(we don't know your problem and we're not able to read in a glass ball)Gruss
H2O
Kommentar
Kommentar