Tidy in Visual Basic .net
"Stijn Adriaensens" <[email protected]> Mon, 27 Feb 2006 11:53:43 +0100
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello all.
I'm trying to use Tidy in VB.net cause i need it for a graduation project.
I'm not a programmer, so i don't know C++.
When using the Wrappers from Charlie (http://users.rcn.com/creitzel/tidy.html)
I encountered a problem. I get different results using the Wrappers, then
when i use the command line version. The command line version of Tidy gives
the correct results. I added the example at the end of this mail.
I tried using the Win32 source from the Tidy sourceforge page, but when i
build the TidyCOM project in there, i get this error: "fatal error LNK1811:
cannot open input file 'TidyProxy.obj'". After fooling around a bit in the
code, and looking on the web for solutions, i decided to use this
mailinglist, hoping to get help or pointers via this way.
To summarise the question: What is the best way to be able to have a recent
version of Tidy in the form of a DLL, so i can easily use it in VB.net?
Kind regards,
Stijn Adriaensens
---
My goal is to convert output from www.dnsstuff.com (like
http://www.dnsstuff.com/tools/mail.ch?domain=stijn.adriaensens%40gmail.com )
into a XML document.
These are the results i get using the command line version of Tidy:
</pre>
<table border="1">
<tr>
<th>Host</th>
<th>Preference</th>
<th>IP(s) [Country]</th>
</tr>
<tr>
<td>in.mx.skynet.be.</td>
<td>10</td>
<td>195.238.3.129 [BE]</td>
</tr>
<tr>
<td> relay.mx.skynet.be.</td>
<td>50</td>
<td>195.238.3.130 [BE]</td>
</tr>
</table>
<pre>
And these using the Wrappers via VB.net
<table><tr><th>Host</th><th>Preference</th><th>IP(s)
[Country]</th></tr>
<tr><td>in.mx.skynet.be.</td><td>10</td><td>195
.238.3.129
[BE]</td></tr>
<tr><td>relay.mx.skynet.be.</td><td>50</td><td>195.238.3.130
[BE]</td></tr>
</table>
<br /><hr>