[xml] Problem parsing with python?

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"
<!--some html code-->

The leading line before "<?xml ..." seems to cause problems.

"parser error : XML declaration allowed only at the start of the


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]