The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Build the extractor as HTTP Request → XML → document-type branch → Split Out or Code → deduplicate → export. A flat sitemap sends page URLs from urlset.url.loc to your output. A sitemap index sends child sitemap URLs from sitemapindex.sitemap.loc through the same fetch-and-parse loop before page URLs are emitted. The workflow below handles both forms, preserves lastmod and source-sitemap metadata, and can continue to CSV, Google Sheets, a database, or link checks.
What the workflow produces
Each final n8n item should contain a canonical URL and, when present, the source sitemap and last-modification value:
{
"url": "https://www.example.com/products/widget",
"lastmod": "2026-09-01",
"source_sitemap": "https://www.example.com/sitemap-products.xml"
}
loc is required in a standard sitemap; lastmod is optional metadata. Keep the source file so a later status check, redirect report, or migration audit can be traced back to its input.
Choose the input and trigger
Manual or scheduled runs
For a one-off extraction, add a Manual Trigger, then an Edit Fields (Set) node with a field named sitemap_url, such as https://www.example.com/sitemap.xml. A Schedule Trigger is suitable for recurring inventories.
Free tools Windows power users keep installed
One-click scans. No signup required.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Webhook or chat input
A Webhook or Chat Trigger can accept the URL from a request. Normalize the incoming property to sitemap_url with Edit Fields so the rest of the workflow does not depend on a particular trigger payload.
Fetch the XML with HTTP Request
- Add an HTTP Request node after the trigger.
- Set the request method to GET.
- Use an expression for the URL:
{{ $json.sitemap_url }}. - Configure the response as text (string), not JSON. XML must reach the parser unchanged.
- Keep the incoming URL available. If your node version replaces the item with the response body, add it back with an Edit Fields or Code node, or use an explicit field such as
source_sitemapbefore the request.
For production runs, enable the node’s error output or continue-on-fail behavior and route failed HTTP responses to a separate error branch. A 404, redirect loop, access-denied response, or HTML error page is not a sitemap and should not enter the XML mapping branch.
Parse XML with the native XML node
- Add the XML node after HTTP Request.
- Choose the operation that converts XML text into a structured object.
- Map the HTTP response body field as the XML input.
Inspect one execution before mapping fields. Namespace prefixes and array shapes can vary with the n8n version and the XML document, so confirm whether the parsed root is exposed as urlset or sitemapindex, and whether repeated children are arrays.
Branch between a flat sitemap and an index
Detect the root
Add an IF or Switch node and test for the presence of sitemapindex. The true branch is an index; the false branch should test for urlset. Send anything else to an error path labeled “unsupported or malformed XML.” Also verify that the document begins with an opening <urlset> and ends with a closing </urlset> for a normal sitemap, with the appropriate namespace present.
Flat urlset branch
For a normal sitemap, map urlset.url into individual items. Use Split Out when the node exposes the repeated entries as an array. Select the loc field as the value to split, or split the complete entry if you also need lastmod. Then rename fields to url and lastmod, and set source_sitemap from the original request URL.
Recursive sitemapindex branch
An index contains child sitemap locations under sitemapindex.sitemap[*].loc. Split that array into one item per child URL, set each item as the next request’s sitemap_url, and connect the items back to the HTTP Request node. The loop is:
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
- Split child
locvalues. - Fetch each child sitemap with HTTP Request.
- Parse each response with XML.
- Confirm the child is a
urlset(or handle a nested index if your site uses one). - Split
urlset.urland emit page-levelurl.locvalues.
Use a loop or batching pattern so all child files are processed without losing the parent context. Store the child URL as source_sitemap; if you need the top-level index as well, preserve it in a second field such as root_sitemap. A nested index should re-enter the same index branch, with a maximum depth or visited-set safeguard to prevent accidental cycles.
Flatten, normalize, and deduplicate URLs
Split Out mapping
Split Out is easiest when the XML node has a predictable array. Split the complete url entry, then map:
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsurl= entry’sloclastmod= entry’slastmod, if suppliedsource_sitemap= the file that produced the entry
Do not invent a date when lastmod is absent. Keep it null or omit it.
Code-node fallback
When XML output contains awkward nested arrays, add a Code node after parsing. Adapt the field paths to the actual execution data:
const root = $json;
const rows = root.urlset?.url ?? [];
return rows
.map(entry => ({
json: {
url: entry.loc,
lastmod: entry.lastmod ?? null,
},
}))
.filter(item => typeof item.json.url === 'string' && item.json.url.length > 0);
For an index, first emit root.sitemapindex.sitemap[*].loc, iterate those child URLs, and run the page-sitemap extraction. Add source_sitemap in the object emitted by your production version so later checks remain traceable.
Canonicalization and filters
Treat the text in loc as the supplied canonical URL. Before deduplication, apply only transformations you explicitly need: trim whitespace, optionally normalize a trailing slash policy, and decide whether fragments should be removed. Do not silently rewrite query strings that may identify distinct resources.
Recommended Free Tools
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Use an IF node or Code node to filter by hostname, path prefix, scheme, or extension. For example, an SEO inventory may keep only https://www.example.com/; a migration may keep both old and new hosts. Record excluded items in a separate branch when auditability matters.
Deduplicate on the normalized URL. A simple Set-based Code node can retain the first occurrence while preserving metadata:
const seen = new Set();
const out = [];
for (const item of $input.all()) {
const url = item.json.url?.trim();
if (!url || seen.has(url)) continue;
seen.add(url);
out.push({ json: { ...item.json, url } });
}
return out;
Export or continue the pipeline
CSV
Connect the cleaned items to Convert to File (CSV) or the CSV operation available in your n8n version. Include url, lastmod, and source_sitemap. Return the binary file from a Webhook response or write it to your chosen storage.
Google Sheets
Use Google Sheets after flattening. Map one item per row and create columns for URL, lastmod, and source sitemap. Batch writes where your instance supports them rather than issuing a separate spreadsheet operation for every URL.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Checks, crawling, and databases
Feed one URL per item to HTTP status checks, redirect analysis, content scraping, a database insert, or a crawl queue. Keep the extraction and checking stages separate: that lets you rerun failed checks without downloading every sitemap again.
Limits, scale, and reliability
- Per-file protocol limit: one sitemap file can contain at most 50,000 URLs and be no larger than 50MB (52,428,800 bytes) uncompressed. Larger sites must use multiple files and a sitemap index.
- Memory: parsing a 50,000-URL file and holding all items can require substantial memory; n8n’s hosting environment determines whether the CSV or template-style workflow needs more resources.
- Batching: when extracted URLs feed page requests, batch them and cap crawl depth. Do not launch an unbounded request fan-out.
- Rate control: use batching, waits, and respectful concurrency for the target site. Sitemap extraction itself is usually cheaper than fetching every page.
- Context preservation: explicitly map the original URL and source sitemap around HTTP calls, or use Merge/Code steps, so status and redirect results can be joined to the extracted row.
- Caching: if the sitemap rarely changes, store the last successful response and compare hashes or last-modified information before repeating downstream work.
Troubleshooting common failures
XML node returns no URLs
Inspect the parsed execution JSON. The site may be an index, the repeated value may be an array nested under a namespace, or the HTTP response may be HTML. Branch on the actual root and adjust the field path rather than assuming every file is a flat urlset.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Only one URL is emitted
The repeated element was mapped as a single object. Use Split Out on the array, or use the Code fallback and verify that urlset.url is an array.
HTTP Request receives an empty URL
The loop lost its mapped field. Before reconnecting to HTTP Request, set sitemap_url explicitly from the split loc value and confirm it in the node input preview.
Access denied, CAPTCHA, or a non-XML response
Check the status code and content type, then route the item to an error branch. Some hosts restrict automated requests; do not pass the resulting HTML challenge to XML parsing. Add authentication headers only when you are authorized to access the resource.
Duplicates remain
Deduplicate after URL normalization and after all index branches converge. If equivalent URLs differ by host, slash, case, or query parameters, define that policy explicitly before applying it.
Workflow runs out of memory or times out
Split large indexes, process child files in batches, limit downstream page requests, and avoid retaining full XML bodies after parsing. Increase resources only after reducing unnecessary parallelism.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
ScreenshotNeo is a website screenshot API, so it is useful when your workflow also needs visual captures of pages represented by the extracted URLs. One GET request returns a PNG, JPEG, WebP, or PDF. Its clean-shot steps accept cookie or consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing result. It also provides an MCP server with take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
See the ScreenshotNeo API documentation for options such as full-page lazy-image loading, CSS-selector element capture, device presets, custom JavaScript and CSS, waits, request blocking, cookies, headers, geolocation, PDF page ranges, signed links, asynchronous webhooks, bulk capture of up to 100 URLs per call, and caching TTLs.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://example.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Create a free ScreenshotNeo account to try it.
Complete workflow checklist
- Accept and validate
sitemap_url. - Fetch the response as text with HTTP Request.
- Parse it with the XML node.
- Branch on
sitemapindexversusurlset. - Loop through child sitemap locations for indexes.
- Split repeated entries and map
loc, optionallastmod, andsource_sitemap. - Filter, normalize, and deduplicate.
- Export to CSV, Sheets, a database, or controlled downstream checks.
- Route malformed XML, HTTP failures, and resource-limit conditions to observable error handling.
Frequently Asked Questions
Can one n8n workflow handle both sitemap.xml and sitemap indexes?
Yes. Detect the parsed root, process a flat urlset directly, and loop sitemapindex child locations back through HTTP Request and XML before emitting page URLs.
Should lastmod be used to decide whether to crawl a URL?
Treat lastmod as source-supplied metadata, not proof that content changed. Use it as one input to your own recrawl policy.
How do I prevent an index loop from running forever?
Track visited sitemap URLs and enforce a maximum nesting depth before re-entering the index branch.
The Bottom Line
The dependable n8n pattern is HTTP Request → XML → root-type branch → split and clean → export. Handling indexes separately, preserving source context, deduplicating after normalization, and batching downstream requests turns it into a reusable sitemap inventory workflow.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

