Why are values from different items being mixed together?
If names, prices, URLs, or other fields from different items are being combined into the same row, the sitemap usually needs a clearer record wrapper.
Use one wrapper for each record
Create an Element selector that matches one complete repeated item, such as one product card, job listing, property, or directory entry.
Place all fields that belong to that item beneath the same Element selector.
_root
└── item
├── name
├── price
├── url
└── availability
This keeps the values from each item together in the same output record.
Avoid parallel selectors for fields that belong together
Do not create separate multiple-value selectors for fields such as product names and prices when those values need to stay paired. Use a common Element wrapper instead.
Check the wrapper itself
- Make sure the Element selector matches the complete record, not only one field inside it.
- Use a more specific CSS class or attribute if unrelated items are also being matched.
- Exclude advertisements, recommendations, and hidden elements when necessary.
Test different item layouts
Preview records with different layouts, such as one product with only a regular price and another with both a regular and discounted price. This helps confirm that values do not shift between records when a field is missing.
See the Wrong elements or values were selected documentation for more information.