Get HTML fragments using XPath

Introduction

This article explain how to get the HTML fragments from the HTML document that match the specified XPath query. Aspose.HTML Cloud provide two APIs to get the list of HTML fragments:

API Information

APITypeDescriptionSwagger Link
/html/{name}/fragments/{outFormat}GETReturn list of HTML fragments matching the specified XPath queryGetDocumentFragmentByXPath
/html/fragments/{outFormat}GETReturn list of HTML fragments matching the specified XPath query by the source page URLGetDocumentFragmentByXPathByUrl

cURL Example