---
name: "libwget-parse_sitemap"
section: "3"
platform: "linux"
package: "wget2-dev"
version: "2.2.0+ds-1+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/libwget-parse_sitemap"
---

# libwget-parse\_sitemap(3)

Sitemap URL extraction routines

## NAME

libwget-parse\_sitemap - Sitemap URL extraction routines

## SYNOPSIS

### Data Structures

struct **sitemap\_context**\

### Functions

void **wget\_sitemap\_get\_urls\_inline** (const char \*sitemap, **wget\_vector** \*\*urls, **wget\_vector** \*\*sitemap\_urls)\

## Detailed Description

Routines for URL extraction from Sitemap XML data.

## Function Documentation

### void wget\_sitemap\_get\_urls\_inline (const char \* sitemap, wget\_vector \*\* urls, wget\_vector \*\* sitemap\_urls)

**Parameters**

*sitemap* Sitemap XML data \
 *urls* Pointer to return vector of URLs \
 *sitemap\_urls* Pointer to return vector of sitemap URLs

Finds all URLs and sitemap URLs within the Sitemap XML data `sitemap` and returns them as vector in `urls` and/or `sitemap_urls`.

## Author

Generated automatically by Doxygen for wget2 from the source code.
