ampersands

I've got some HTML data that I'm trying to read with an XMLTextReader (or a plain XMLReader). When ever it hits an anchor tag where the href contains an &, it crashes. I realize that & are supposed to prefix tokens like   < & etc..., but is there a way to have the &s inside tag arguments


Answer this question

ampersands

  • Alex-MyRpg

    No. Technically, bare ampersands aren't valid in HTML either, but browsers don't compliain. (The W3C validator, of course, will :)

    -Ryan


  • term_paint

    Not well formed XML -- is not an XML and XmlReader can't pass it.



  • ampersands