I think the XML parser should be for parsing XML. You could look at
the HTML module or, even better, use Neil van Dyke's html-parsing
library, which deals with this issue and more.

Jay

On Wed, Dec 12, 2012 at 9:42 PM, Haiwei Zhou <highfl...@gmail.com> wrote:
> Hi,
>
> In HTML the <img> tag has no end tag. This causes trouble while using
> string->xexpr. It is reported that tag img is not closed.
>
> I found in the XML writer there is a parameter named empty-tag-shorthand to
> control the HTML generation behavior. So I added a quick hack into XML
> reader to tolerate those empty-tags.
>
> Should I commit my patch back to collection?
>
> Regards,
> Haiwei
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>



-- 
Jay McCarthy <j...@cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to