Files
webstudio/docs/university/core-components/xml-node.md
T
Oleg Isonen 37429b2aad docs: Refresh Variables section and dialog guide (#6543)
## Change
- Match documentation navigation and links to the Builder **Variables**
section label, including the Flotiq setup path.
- Refresh the Variables guide against the current new variable dialog:
available types, name validation and shadowing, resource editors,
previews, and actions.
- Preserve “data variables” where it names the data concept and keep
existing Resource and GraphQL link anchors.

## Verify
- `pnpm check:generated-docs` passed.
- `git diff --check` passed.
- Reviewed the docs-only diff against the dialog editors and current
labels.
2026-10-17 00:58:30 +02:00

1.9 KiB
Raw Blame History

description
description
The XML Node is used to create an XML document, such as a sitemap.

📘 XML Node

{% hint style="info" %} Webstudio automatically generates a sitemap for static pages such as Home and About. If you are integrating with a CMS, you can use this component to create a sitemap for CMS data. {% endhint %}

XML Node component available for an XML page

The component appears when Document type is XML

How to use the XML Node component

  1. Go to Page Settings > Document Type and select XML from the dropdown

    Page Settings with Document type set to XML
  2. Go to Components > XML and add XML Node (this component won’t show until Step 1 is completed)

  3. Set the tag and text content (e.g., “loc” and “https://example.com)

Tips

  • XML Nodes can be nested within each other
  • Use Collection to iterate over a list of data
  • A sitemap skeleton is available in the Marketplace

Include the static sitemap

While you can use the autogenerated sitemap for static pages and create a separate sitemap for dynamic pages, you can also combine the two.

To include the static sitemap data in your custom sitemap, follow these steps:

  1. Create a page

  2. In the page settings, set the Document Type to XML

  3. Set the page path to /sitemap.xml. This will override the default sitemap.

  4. In Settings > Variables, add a variable and choose Sitemap resource in the New variable dialog.

  5. Use a Collection to iterate over the static sitemap data