Solutions for tidying HTML in .NET [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Do people think there is any need of a good analogue of HTML Tidy for .NET?
I am looking to create a product that will do things like filter HTML syntax for documents, performing various tasks, such as: cleaning up HTML generated by MicroSoft Word, converting HTML to XHTML, stripping out certain elements, etc.
What other possible common functions would be expected from an HTML tidier?

I haven't tried any of these, but there are a couple of links here: http://tidyfornet.sourceforge.net/
Let us know what kind of success you have with any of them. This is a good question to know the answer to.

You can achieve some cleanliness by using the built-in HTML formatting tool in Visual Studio.
http://weblogs.asp.net/scottgu/archive/2006/07/07/Tip_2F00_Trick_3A00_-Custom-formatting-HTML-in-Visual-Web-Developer-and-Visual-Studio-2005.aspx

I had used LINQ to XML with connection to HTMLAgilityPack for importing HTML into a WPF application which in turn reads specific information from a HTML file.
You may use it to perform the corrections in formatting or highlighting the HTML syntax. You can find more information about Html Agility Pack on Codeplex.

Related

Web scraping using c# in dynamic pages [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 days ago.
Improve this question
I'm trying to create a c# program that automates operations on IMDb (looks up a title and then adds it to a user's private list). I'd prefer to use c# because this last part of a program that also does other operations, but if it should be too difficult I might also be forced to use another language (python). As said before I really would like to use c# but I really don't know where to start, from what I understand I should use the "tags" in the html page, but I'm open to suggestions on how to proceed
site: https://www.imdb.com/
I tried to use a Chrome extension to parse the page and find the way to choose the right html button but i don't know how to go about it (i'm just a beginner in c# and i wanted to learn something by doing this little project)

C# The best way to convert html not well-formed to PDF [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
I want to build a method to convert HTML content to PDF file. HTML is email content. It's very long and complex. HTML of email is not well-formed.
I have used itextSharp library. But the results from this library are not well. Beside, The itextSharp 's performance is slow.
Is there the best way to make it?
iTextSharp's XMLWorker expects valid, well-formed HTML as input. If you know that your HTML will not be valid, then you need to use a HTML cleanup tool. One of such tools is NSoup, which is a . NET port of JSoup. Another is HTML Agility Pack.
EDIT: iText 7's pdfHTML is better equipped at dealing with malformed HTML.

Online tool to convert JSON to C# object format [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm looking for a quick and simple way to convert large JSON objects in a text file to C# object notation for a company project. I would prefer an online solution (similar to jsbeautifier.org) that would take my code, parse it, and return a C# formatted object.
Are there any tools (preferably online) that will do this? I'm hoping not to do this by hand, but writing a script might take time that I don't have right now. (I'm not too well-versed with C# library calls.)
Thank you!
I think following link will help.
Generate c# classes from json
Actually it uses the same project which achitaka-san said in his post. You can create a simple WebService in any host and use it.
This application generates C# classes from a sample JSON text, so you can use strongly typed programming with JSON.
http://jsonclassgenerator.codeplex.com
This is not online, but you just download an EXE, paste your JSON and get a c# class - taht's it.

Generating C#/C++ Xml code documentation in a WinCE environment [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am working on a Windows CE project involving managed (C#) and unmanaged (C++) components.
For the documentation I am using Sandcastle and the Help File Builder.
My open points are the following :
1) I have not found a way to have Xml code documentation files generated from C++ code. The following option is not available for device projects :
http://msdn.microsoft.com/en-us/library/ms173501(v=vs.80).aspx (the property "Generate XML Documentation Files" does not exist).
2) Assuming that there is a (fairly simple) way to generate the above required Xml files (please let me know how), would they be automatically "collected" by Sandcastle as the C# ones are and integrated consistently in the generated documentation file?
3) Is there any other way involving SandCastle to solve the problem?
Thanks in advance for your answers.
Umberto
Sandcastle works for.net languages. For c++, you can use Doxygen to do the same thing. (It can handle the same XML format, and output the same xml doc file)
You can also use my addin, Atomineer Utils to generate and update this documentation more easily, in both c# and c++ code.

How do you display and edit XML in a webpage? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I want to generate some XML, display it in a web page, and allow the user to edit the xml if they want.
Is there a control / library / commonly accepted technique that would achieve these goals ?
I've seen a couple possible solutions but nothing has stood out, so I turn to the StackOverflow community to guide me to the best possible solution.
I don't have any technology limitations set here however I would like to remain in the HTML/Javascript or .NET technologies if possible.
I think you can edit XML files using the TreeView.
Take a look at this article:
http://aspalliance.com/1873_Edit_XML_Files_Using_ASPNET_TreeView_Control
Try to use editarea. See demo.
I have some experience with Xml Web Pad and I found it has pretty good features suitable for your needs.

Categories

Resources