views:

31

answers:

1
A: 

HTML Agility Pack does choke on nodes with ? in the name. The simplest option is probably to go through the HTML string before you load it into a document object and replace instances of <? with <php and so-on. That doesn't handle any nasty cases like having a string literal on the page with "&lt?" but really, how often does that happen?

Rex M
Pity.. It chokes on ?..Replaced with token as suggested.Thanks