Re: [xml] *mlDocDumpMemory[Enc] functions croak?




--- Daniel Veillard <veillard redhat com> wrote:
On Tue, May 03, 2005 at 10:37:07PM -0700, Abraham
Nelson wrote:
The code for the file page.html is taken from the
site
www.teleworking.gr

What happens is that the file is parsed properly,
but
when trying to dump it an error occurs:

   output conversion failed due to conv error
   Bytes: 0xCE 0xCE 0xCE 0xCE
   I/O error : encoder error

I find this error odd, since I've specified the
same
output encoding as what the tree is.

paphio:~/XML -> xmllint --html
http://www.teleworking.gr/
http://www.teleworking.gr/:97: HTML parser error :
Unexpected end tag : style
        css += '</style>\n'
                        ^
http://www.teleworking.gr/:130: HTML parser error :
Unexpected end tag : a
idth="80"><img border="0"
src="images/home_space.gif" width="80"
height="1"></a>                                     
                                         ^output
conversion failed due to conv error
Bytes: 0xCE 0xCE 0xCE 0xCE
I/O error : encoder error
http://www.teleworking.gr/:19: element script: error
: String is not UTF-8
  
There is a serious parsing failure in the script
content. This seems to be the
source of the error, 

Shouldn't the script section be simply seen as a block
of CDATA instead (at least when using the html
parser)? I don't see the need to try to parse anything
within it...



 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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