Re: XML Error 1.0 - ???
| From: | @work) | Date: | Mon, 14 Aug 2000 19:12:48 +0000 |
| Subject: | Re: XML Error 1.0 - ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11670@lists.php.net to get a copy of this message | ||
Sue Bailey wrote:
>
> I have a tiny little xml file with a php parser to read it; the php is
> opening the xml file fine, but when it comes to actually _read_ it, it's
> giving me "XML Error 1.0". I've been through every bit of documentation
> I can find, and can't find what this might mean-- I assume it's
> something pretty basic from the number! Can anyone enlighten me?
> The relevent bit of php is
> while ($data = fread($fp, 4096)) {
> if (!xml_parse($parser, $data, feof($fp))) {
> die(sprintf("XML error %d %d",
> xml_get_current_line_number($parser),
>
> xml_get_current_column_number($parser)));
> }
> }
Have you made $parser = xml_parser_create(); or die ("Couldn't create a
parser"); bevor your relevant bit?
-Egon
--
SIX Offene Systeme GmbH · Stuttgart - Berlin - New York
Sielminger Straße 63 · D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164 · Fax +49 711 9909199 http://www.six.de