hi,i developping a site web with asp.net and mapguide entreprise 2010 ,i could refreh my layer programetecly with DOM but i could'nt change the image of symbole library . could any body help me .
the code of modification layer is setting below :
XmlDocument EmpXMLDoc2 = new XmlDocument();
string XMLDocPath2 = Server.MapPath("symbole.LayerDefinition.XML");
EmpXMLDoc2.Load(XMLDocPath2);
XmlNode node4;
node4 = EmpXMLDoc2.DocumentElement;
string h3 = null;
string nom = "";
int nbr=node4.ChildNodes.Count;
foreach (XmlNode node2 in node4.ChildNodes)
{
// Object xmlAddSymbolDoc;
// xmlAddSymbolDoc = Server.CreateObject("Microsoft.XMLDOM");
//xmlAddSymbolDoc..async = False
// string hh = node2.ChildNodes[6].ChildNodes
//XmlNodeList hk = node2.ChildNodes[6].ChildNodes;
// string j = hk.Item(0).Name;
//string hb = hk.Item(0).ChildNodes[2].ChildNodes[1].ChildNodes[0].ChildNodes[7].ChildNodes[1].Name;
// hk.Item(0).ChildNodes[2].ChildNodes[1].ChildNodes[0].ChildNodes[7].ChildNodes[1].InnerText ="s14";
EmpXMLDoc2.Save(Server.MapPath("symbole.LayerDefinition.XML"));
}
string xml3 = String.Format(GetTemplate("symbole.LayerDefinition.xml"), nom);
string h4 = SaveSessionResource("symboles.LayerDefinition", xml3, resourceService, sessionId);