The selected elements and settings are displayed in the code editor, but you can also write your own code.
The attached code is a mixture of Razor syntax and XML. In detail:
- Razor Syntax (e.g.):
- @{…} and @variable are used to enclose server-side C# code in HTML or XML code.
- @foreach is a loop construct used to generate code to loop over collections of items.
- The @if construct is used to insert conditional code.
- XML (e.g.):
- An XML structure representing a list of products, where the data for each product is contained in XML tags.
The screenshot sample script generates an XML document for products, including various attributes like Identifier, Manufacturer, Name, EAN code, Description, Image URLs, Product URL, Category, Price, Net Price, Attributes, Delivery Time, and Delivery Cost.