Ciao, ho questo codice:
codice:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Import Namespace="System.Xml" %>
<script runat="server">
sub page_load(obj as object, e as eventargs)
try
	dim xmldoc as new XMLDocument()
	xmldoc.load(server.MapPath("xml\post200320031320220010.xml"))
	
	dim Root as XmlElement = xmldoc.item("Thread")
	
	dim Post as XmlElement = xmldoc.CreateElement("Post")
	dim PostTitle as XmlElement = xmldoc.CreateElement("PostTitle")
	dim PostBody as XmlElement = xmldoc.CreateElement("PostBody")
	dim PostAuthor as XmlElement = xmldoc.CreateElement("PostAuthor")
	dim IdPostAuthor as XmlAttribute = xmldoc.CreateAttribute("id")
	
	PostAuthor.SetAttributeNode(IdPostAuthor)
	PostAuthor.SetAttribute("id", "id dell'utente")
	
	dim PostTitleText as XmlText = xmldoc.CreateTextNode("TITOLO")
	dim PostBodyText as XmlText = xmldoc.CreateTextNode("BODY")
	dim PostAuthorText as XmlText = xmldoc.CreateTextNode("0100")

	PostTitle.AppendChild(PostTitleText)
	PostBody.AppendChild(PostBodyText)
	PostAuthor.AppendChild(PostAuthorText)	
	
	Post.AppendChild(PostTitle)
	Post.AppendChild(PostBody)
	Post.AppendChild(PostAuthor)
	Root.AppendChild(Post)
	
	xmldoc.save(server.MapPath("xml\post200320031320220010.xml"))
catch ex as exception
	ciao.text = ex.message
end try
end sub
</script>
Purtroppo se salvo su un file diverso da quello da cui leggo, tutto funziona, altrimenti mi da l'errore:

Access to the path "D:\...\post200320031320220010.xml" is denied.

Sapete aiutarmi??? Io vorrei aggiornare il file, anzichè crearene uno nuovo!

Ciao e grazie