I'm new to ASP.NET and started creating a website with basic razor syntax. I'm trying to display a grid with tile-like div elements from a XML file show below. So far I haven't found anything that would work for this.
"/content/content.xml"
<?xml version="1.0" encoding="utf-8" ?>
<categories>
<home>
<tile text="Title 1"></tile>
<tile text="Title 2"></tile>
</home>
</categories>
"/home.cshtml"
<body>
@{ razor code or something}
<div id="page">
<div id="categories"></div>
<div id="tiles"></div>
</div>
</body>
I would like to get the content from the xml file and display it in html like show:
<body>
<div id="page">
<div id="categories">Home</div>
<div id="tiles">
<div>Title 1</div>
<div>Title 2</div>
</div>
</div>
</body>
Note: this is a simplified version of my code.