XML Node
The XML Node is used to create an XML document, such as a sitemap.
Last updated
Was this helpful?
The XML Node is used to create an XML document, such as a sitemap.
Last updated
Was this helpful?
Go to Page Settings > Document Type and select XML from the dropdown
Go to Components > XML and add XML Node (this component won’t show until Step 1 is completed)
Set the tag and text content (e.g., “loc” and “https://example.com)
XML Nodes can be nested within each other
A sitemap skeleton is available in the Marketplace
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:
Create a page
In the page settings, set the Document Type to XML
Set the page path to /sitemap.xml. This will override the default sitemap.
Fetch the static data by clicking Create Variable > System Resource (Type) > Sitemap (Resource)
Use to iterate over a list of data
Use a to iterate over the static sitemap data