Aspose.HTML 26.9.0

Prefix Reserved
dotnet add package Aspose.HTML --version 26.9.0
                    
NuGet\Install-Package Aspose.HTML -Version 26.9.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.

                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.

                    
Directory.Packages.props

                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aspose.HTML --version 26.9.0
                    
#r "nuget: Aspose.HTML, 26.9.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aspose.HTML@26.9.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aspose.HTML&version=26.9.0
                    
Install as a Cake Addin
#tool nuget:?package=Aspose.HTML&version=26.9.0
                    
Install as a Cake Tool

HTML File Manipulation .NET API

Version 26.9.0 NuGet

banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Releases | Free Support | Temporary License

Aspose.HTML for .NET is a powerful and flexible library that enables .NET developers to integrate advanced HTML processing and rendering capabilities into their applications without relying on third-party software. It supports a wide range of tasks, from creating, editing, navigating, and saving HTML and HTML-based documents to advanced features such as conversion between formats, merging, HTML form manipulation, data extraction, and WCAG accessibility validation. This library supports parsing of HTML5, CSS3, SVG, and HTML Canvas to construct a Document Object Model (DOM) based on the WHATWG Standard. Aspose.HTML for .NET is designed to handle large and complex documents efficiently and runs seamlessly across Windows, Linux, and macOS. The classes and properties of Aspose.HTML for .NET API have similar names as that of W3C HTML specification.

HTML Processing API Features

The library provides a comprehensive set of features for working with HTML documents:

Document Manipulation

  • Create, Edit, and Navigate HTML Documents. Create, load, and modify HTML, XHTML, Markdown, or SVG documents with full control over elements, attributes, and structure using a powerful DOM-based API.
  • Load EPUB and MHTML file Formats. Open and convert EPUB and MHTML documents with full support for their internal structure and linked resources.
  • Save with Linked Resources. Save documents along with all linked resources like CSS, fonts, and images using customizable saving options.
  • Node-Level Operations. Insert, remove, clone, or replace HTML elements at any level of the DOM tree for granular control over content.
  • Custom Environment Configuration. Set custom user style sheets, font folders, message handlers, sandboxing, and other environment parameters to tailor document rendering and behavior.

Data Extraction

  • DOM Traversal. Navigate and manipulate the DOM tree using W3C-compliant traversal interfaces to inspect and retrieve content from HTML documents.
  • XPath Queries. Perform high-performance XPath queries to find and extract target content from large HTML documents.
  • CSS Selector and JavaScript. Use CSS selector queries and JavaScript execution to dynamically locate and extract specific elements.
  • Extract CSS Styling Information. Retrieve and analyze inline styles, embedded