How to Retrieve the Sitemap URL for an HTML Document in C# .NET Framework

Install-Package Cloudmersive.APIClient.NET.DocumentAndDataConvert -Version 3.4.2
using System;
using System.Diagnostics;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Api;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Client;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Model;
namespace Example
{
public class EditHtmlHtmlGetSitemapExample
{
public void main()
{
// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
var apiInstance = new EditHtmlApi();
var inputFile = new System.IO.FileStream("C:\\temp\\inputfile", System.IO.FileMode.Open); // System.IO.Stream | Optional: Input file to perform the operation on. (optional)
var inputFileUrl = inputFileUrl_example; // string | Optional: URL of a file to operate on as input. (optional)
try
{
// Gets the sitemap URL for the HTML document
HtmlGetSitemapUrlResult result = apiInstance.EditHtmlHtmlGetSitemap(inputFile, inputFileUrl);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EditHtmlApi.EditHtmlHtmlGetSitemap: " + e.Message );
}
}
}
}

--

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Project Specification. What is It and What Should It Contain?

Web Scraping using XPath

Time Midterm: Weather Journals

The Rise of Low-Code, No-Code Platforms

How to Write Clean PYTHONIC Code With SOLID Principle #2

Creating Data Pipeline with Spark streaming, Kafka and Cassandra

SETUP DOCKER ON AWS EC2 INSTANCE

URL Shortener System Design

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

More from Medium

C# Desktop application to get real-time BLE data from Air Quality Sensor

Making Strategies — An example of the Strategy pattern with the Factory pattern

Recognize Audio Input as Text with Machine Learning in C#