Learn how to use this n8n workflow to read any sitemap.xml, convert it to JSON, and filter specific URLs (like PDFs) using core n8n node logic. Great n8n templates for developers.
Download this n8n workflow template and start using it instantly.
SEO Specialists needing to audit specific file types linked in their sitemap.
Developers looking for a robust n8n node approach to process XML data.
Automation enthusiasts who want reusable n8n templates for data cleaning and filtering.
Users who need to repeatedly extract and process links from large sitemap files using an n8n workflow.
Handling sitemap files is crucial for SEO analysis and data extraction, but they are often presented in complex XML format. This powerful n8n workflow solves this by streamlining the entire process. It starts by defining the sitemap URL, fetching the XML content, and using the n8n XML node to convert it into a structured JSON array. The key value of this n8n template lies in its ability to iterate over every single URL entry using the Split Out n8n node and then apply precise filtering rules. By default, it filters for PDF links, but users can easily adjust the filter to target any file type or path structure, providing a highly flexible and efficient solution within the n8n automation platform. This whole process is managed efficiently within a single n8n workflow.
This n8n workflow is initiated by a manual "Test workflow" n8n trigger for immediate execution and testing.
https://duckduckgo.com/sitemap.xml) is defined and passed as an input variable. Users must configure this n8n node.urlset.url) and breaks it down, ensuring each URL entry is treated as a separate item, ready for individual evaluation by the subsequent n8n node.loc property of the URL item ends with .pdf. Only items satisfying this condition proceed to the end of the n8n workflow execution.To utilize this specialized n8n workflow, follow these steps:
sitemapUrl variable to the URL of the sitemap.xml you intend to process. This is a critical configuration step for the n8n workflow..pdf. Adjust the condition settings to match your specific extraction needs (e.g., change .pdf to include specific subdirectories or other file extensions). This allows you to tailor the n8n templates.This efficient n8n workflow relies on several core n8n node components:
‘Test workflow’ trigger (Manual Trigger)
Function: Serves as the starting n8n trigger for manual execution and testing of the n8n workflow logic.
Key Configuration: None, it simply initiates the flow.
Set sitemap URL (Set n8n node)
Function: Stores the static sitemap URL (https://duckduckgo.com/sitemap.xml by default) into the item data under the key sitemapUrl. This makes the n8n workflow highly reusable.
Get Sitemap (HTTP Request n8n node)
Function: Fetches the external resource (the sitemap.xml file) using the URL provided by the previous n8n node.
Key Configuration: URL is dynamically set using expression: ={{ $json.sitemapUrl }}.
Convert Sitemap to JSON (XML n8n node)
Function: Crucial n8n node for data processing. It converts the fetched XML data into a structured JSON format, enabling easy manipulation in subsequent n8n nodes.
Key Configuration: Uses standard settings to ignore attributes and trim whitespace for clean output.
Split Out (Split Out n8n node)
Function: Splits the large JSON array containing all sitemap entries (urlset.url) into individual items. This is necessary to apply item-by-item filtering logic with the next n8n node.
Key Configuration: Field to split out is urlset.url.
Filter URLs (Filter n8n node)
Function: Applies conditional logic to keep only desired items, defining the extraction criteria for this n8n workflow.
* Key Configuration: Filters where the loc field (the actual URL) ends with .pdf. This is the primary customization point for this n8n workflow template.
Automate invoice processing using this advanced n8n workflow. Extract data from images or PDFs with Gemini AI, validate required fields, prevent duplicate entries in Google Sheets, and send instant Gmail notifications using a comprehensive n8n node setup.

Use this n8n workflow to monitor Reddit for specific keywords or subreddits, filter posts by upvotes, and extract the top comments, delivered as a formatted report.

Use this powerful n8n workflow to automate B2B lead generation. Extract, enrich, and export unique LinkedIn post commenters to Google Sheets using robust Apify scrapers. Get started with n8n templates today.

An advanced n8n workflow combining Bright Data MCP for targeted web scraping and Google Gemini AI Agents for interpreting, structuring, and searching product data from ProductHunt.

A robust n8n workflow for high-volume invoice processing. It uses a specialized n8n node for AI data extraction, PostgreSQL for validation, QuickBooks for ERP sync, and Slack for approvals.

Use this powerful n8n workflow to automatically extract expense data from receipts using Telegram, OCR, and GPT-4, storing the structured data across Google Sheets, Notion, and Google Drive. Get reliable n8n templates for finance automation.








































