Ciao zaffoo,
io metterei un literal dove vuoi renderizzare l'xml e nel codice della pagina userei gli strumenti tradizionali di interrogazione database e generazione xml ed alla fine lo convertirei in testo assegnandolo al literal.
Ti scrivo un esempio che ho fatto in questi giorni:
Private xmlDoc As New XmlDocument()Public Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs) xmlDoc = New XmlDocument() Dim xmlDeclaration As XmlDeclaration = xmlDoc.CreateXmlDeclaration("1.0", Nothing, Nothing) xmlDeclaration.Encoding = "UTF-8" xmlDeclaration.Standalone = "yes" xmlDoc.InsertBefore(xmlDeclaration, xmlDoc.DocumentElement) Dim urlsetNode As XmlElement = xmlDoc.CreateElement("urlset") Dim xmlAttrib As XmlAttribute = xmlDoc.CreateAttribute("xmlns") xmlAttrib.Value = "<a target="_blank" href="http://www.google.com/schemas/sitemap/0.84" rel="nofollow">http://www.google.com/schemas/sitemap/0.84</a>" urlsetNode.Attributes.Append(xmlAttri<img src="/forum/skins/default/images/emo/png-blue/icon_smile_blackeye.png" class="absmiddle emoticon" /> xmlDoc.AppendChild(urlsetNode) Dim CONNECTIONSTRING_01 As String = ConfigurationManager.ConnectionStrings("Web_x_Site").ConnectionString Using CONNECTION_01 As New SqlConnection(CONNECTIONSTRING_01) CONNECTION_01.Open() Dim COMMAND_01 As New SqlCommand(String.Empty, CONNECTION_01) COMMAND_01.CommandText = "StoredProcedure1" COMMAND_01.CommandType = Data.CommandType.StoredProcedure Using DATAREADER_01 As SqlDataReader = COMMAND_01.ExecuteReader() While DATAREADER_01.Read() Dim IdParentPage As Int32 = DATAREADER_01.GetInt32(0) Dim IdPage As Int32 = DATAREADER_01.GetInt32(1) Dim Pag_Url As String = DATAREADER_01.GetString(2) Dim Pag_GooglePriority As Decimal = DATAREADER_01.GetDecimal(3) BuildUrlNode(urlsetNode, IdParentPage, IdPage, Pag_Url, Pag_GooglePriority) End While End Using End Using literal1.Text = xmlDoc.InnerXmlEnd SubPrivate Sub BuildUrlNode(ByVal urlsetNode As XmlElement, ByVal IdParentPage As Int32, ByVal IdPage As Int32, ByVal Pag_Url As String, ByVal Pag_GooglePriority As Decimal) Dim urlNode As XmlElement = xmlDoc.CreateElement("url") urlsetNode.AppendChild(urlNode) Dim locNode As XmlElement = xmlDoc.CreateElement("loc") Dim locText As XmlText = xmlDoc.CreateTextNode(Pag_Url) locNode.AppendChild(locText) urlNode.AppendChild(locNode) Dim priorityNode As XmlElement = xmlDoc.CreateElement("priority") Dim priorityText As XmlText = xmlDoc.CreateTextNode(Pag_GooglePriority.ToString("0.0")) priorityNode.AppendChild(priorityText) urlNode.AppendChild(priorityNode)End Sub
E' un esempio, prendilo come spunto.