This project has moved and is read-only. For the latest updates, please go here.

MHT Read & Write

Topics: Developer Forum, User Forum
Nov 19, 2012 at 8:46 PM


I've been using this excellent html parser for a little while now and recently I have a requirement for reading and writing mht files. I had to massage the mht before loading it up into the aglity pack. Simple stuff like replacing strings like '3D' and the '=\x0d\x0a' with empty strings. The Agility pack would otherwise fail at the loading phase.

My question is: Do I need to massage the file before loading into the agility pack or are there switches I can configure? Also I have a requirement to locate elements based on their in-line style and wrap a div around them. When done, I need to write out a working (valid) mht file containing the modifications. I have been working off and on on the code for a couple of weeks now and not being able to modify the mht file which is bugging me.

Does anyone have/had a similar requirement and would you be so kind to share your findings with me on this topic?

Thanks in advance! 

Oct 23, 2013 at 5:57 AM
I too have this question.