Xml tree is not right

Topics: User Forum
Jan 12, 2007 at 8:00 AM
I tried to parse http://www.codeproject.com/script/articles/sections.asp. The xml document generated by Html Agility Pack has different structure as the IE DOM tree.

With xpath: "/html/body/table/tr/td@class='ContentPane'/center/table/tr/td/li/ul@class='compactlist'/li/a", the IE DOM can get the deepest level links, but xml document has a wrong tree structure.

I used to have similar problems, but fixed by using OptionFixNestedTags. But this time, I tried all different options without any luck.

Does anyone know how to fix it?

Thanks,
Tong