Infrastructure Map Server Developer

Infrastructure Map Server Developer

Reply
Member
didou6
Posts: 3
Registered: ‎06-10-2010
Message 1 of 1 (385 Views)

changing value of symbole library

385 Views, 0 Replies
06-17-2010 03:43 AM

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);

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.