Exemplo n.º 1
0
 // Code History:
 // 2014-02-12 mws
 // ******************************************************************************
 public void ScAddSMrelated(Related related)
 {
     XmlNode parentXN = XmlDoc.SelectSingleNode("/nar:" + RootElemName + "/nar:schemeMeta", NsMngr);
     if (parentXN == null)
         return;
     XmlElement newXElement = XmlDoc.CreateElement("related", G2NsCs);
     NarProperty2XmlElement(related, newXElement);
     parentXN.AppendChild(newXElement);
 }
Exemplo n.º 2
0
        // Code History:
        // 2010-12-13 mws
        // ******************************************************************************
        public void ScAddCSCrelated(string conceptElementId, Related related)
        {
            string parentXPath = "/nar:" + RootElemName + "/nar:conceptSet/nar:concept[@id='" + conceptElementId + "']";
            XmlNode parentXN = XmlDoc.SelectSingleNode(parentXPath, NsMngr);
            if (parentXN == null)
                AddCSconcept(conceptElementId);

            XmlElement newXElement = XmlDoc.CreateElement("related", G2NsCs);
            NarProperty2XmlElement(related, newXElement);
            AddPropertyToParent(parentXPath, NameSeqConcept, newXElement);
        }