[xml] Problem parsing with python?
- From: Jim <jimdon gmail com>
- To: xml gnome org
- Subject: [xml] Problem parsing with python?
- Date: Fri, 09 Dec 2005 21:18:54 -0500
I am processin an xml file wil python ... i think there maybe is a bug
in the library ... but i am not a xml spec guru ...
The file I am processing is basically:
------
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--some html code-->
------
The leading line before "<?xml ..." seems to cause problems.
Specifically:
"parser error : XML declaration allowed only at the start of the
document"
Jim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]