[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

confused by different REXML/xmllint parsing errors

Ammon Christiansen

7/25/2006 1:37:00 AM

Here's the XML
<DIV style="position:absolute;top:371;left:745"><nobr><span class="ft4">
be the (2<i>n</i>) Ã?</span></nobr></DIV>

REXML throws a ParseException:
#<REXML::ParseException: Missing end tag for 'span' (got "nobr")
Line: 1
Position: 114
Last 80 unconsumed characters:


xmllint from libxml2-utils gives a different error. Unfortunately I
haven't been able to make sense of it either.

parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xD7 0x3C 0x2F 0x73
position:absolute;top:371;left:745"><nobr><span class="ft4"> be the
(2<i>n</i>)
^

Any pointers would be greatly appreciated.

--
Posted via http://www.ruby-....

1 Answer

Ammon Christiansen

7/25/2006 4:27:00 AM

0

I thought the times character was an asterisk. It must be that
character

Ammon Christiansen wrote:
> Here's the XML
> <DIV style="position:absolute;top:371;left:745"><nobr><span class="ft4">
> be the (2<i>n</i>) Ã?</span></nobr></DIV>
>
> REXML throws a ParseException:
> #<REXML::ParseException: Missing end tag for 'span' (got "nobr")
> Line: 1
> Position: 114
> Last 80 unconsumed characters:
>
>
> xmllint from libxml2-utils gives a different error. Unfortunately I
> haven't been able to make sense of it either.
>
> parser error : Input is not proper UTF-8, indicate encoding !
> Bytes: 0xD7 0x3C 0x2F 0x73
> position:absolute;top:371;left:745"><nobr><span class="ft4"> be the
> (2<i>n</i>)
> ^
>
> Any pointers would be greatly appreciated.


--
Posted via http://www.ruby-....