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
API | Type | Description | Swagger Link |
---|---|---|---|
/html/{name}/fragments/{outFormat} | GET | Return list of HTML fragments matching the specified XPath query | GetDocumentFragmentByXPath |
/html/fragments/{outFormat} | GET | Return list of HTML fragments matching the specified XPath query by the source page URL | GetDocumentFragmentByXPathByUrl |
cURL Example
The /html/{name}/fragments/{outFormat} operates on a HTML on Cloud Storage