Nokogiri sax parser error

Trying to use the Nokogiri Sax parser. I ran into a problem parsing
the following:

It chokes on the x="" attribute.

T.

That’s because it’s not valid xml (or html). You’d need to escape the
< and >

<try x="<x/>: />

Oops typo…

On Mon, Feb 09, 2009 at 12:20:52AM +0900, Trans wrote:

It chokes on the x="" attribute.

Can you be more specific? Are you using the XML SAX parser, or the HTML
SAX parser? What version of libxml2 do you have?

I tried this document with the HTML SAX parser, and it seemed to handle
it just fine.

On Feb 8, 7:16 pm, Aaron P. [email protected] wrote:

Can you be more specific? Are you using the XML SAX parser, or the HTML
SAX parser? What version of libxml2 do you have?

I tried this document with the HTML SAX parser, and it seemed to handle
it just fine.

Ah that was it then. I was using the XML SAX parser and I did not
realize that < > had to be escaped in attributes. What was happing was
the document would basically get cut off after it reached the
attribute.

The HTML SAX parser handled it without a problem though.

My LibXML version is 2.6.31, btw.

Thanks,
T.