XML Parser Functions - problem interpreting an xml file
| From: | Kai Hackemesser | Date: | Mon, 12 Apr 2004 14:32:12 +0000 |
| Subject: | XML Parser Functions - problem interpreting an xml file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-183154@lists.php.net to get a copy of this message | ||
Hello,
I have created my own handler following the examples in the manual. It works
fine for XML files I created for myself. Now I tried one file given by
someone else, but I get as result always following error:
"junk after document element" in line 1, column 0.
I send you a part of the XML file (- content), maybe you can tell me why it
cant be interpreted. It looks like it doesn't like the <? tag?
Regards,
Kai
<?xml version="1.0" encoding="ISO-8859-1"?>
<FONEXPORT>
<ARTIKEL>
<NEWS NR="174345" TOP="0">
<HEAD>
<WEBSITE NR="1" URL="http://www.xxxxx.net"></WEBSITE>
<BEREICH NR="6">News</BEREICH>
<RUBRIK NR="150">xxxxx</RUBRIK>
<AUTOR NR="2">-red-</AUTOR>
<DATUM>12.04.2004 16:14:00</DATUM>
<COPYRIGHT>xxxxx</COPYRIGHT>
</HEAD>
<BODY>
<UEBERSCHRIFT><![CDATA[xxxxxxxxxxx]]></UEBERSCHRIFT>
<TEXT><![CDATA]]></TEXT>
</BODY>
</NEWS>
</ARTIKEL>
</FONEXPORT>