Exemplo n.º 1
0
 internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <int, XmlElement> processed)
 {
     base.SetXML(xml, host, processed);
     setAttribute(xml, "Identifier", Identifier);
     setAttribute(xml, "Name", Name);
     setAttribute(xml, "Description", Description);
     if (mUnit > 0)
     {
         xml.AppendChild(mDatabase[mUnit].GetXML(xml.OwnerDocument, "Unit", this, processed));
     }
     if (mReferencePath > 0)
     {
         xml.AppendChild(ReferencePath.GetXML(xml.OwnerDocument, "ReferencePath", this, processed));
     }
 }
Exemplo n.º 2
0
 internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <string, XmlElement> processed)
 {
     base.SetXML(xml, host, processed);
     xml.SetAttribute("BenchMark", mBenchMark.ToString().ToLower());
     setAttribute(xml, "ValueSource", ValueSource);
     if (mDataValue > 0)
     {
         xml.AppendChild(mDatabase[mDataValue].GetXML(xml.OwnerDocument, "DataValue", this, processed));
     }
     else if (mDataValueValue != null)
     {
         xml.AppendChild(convert(xml.OwnerDocument, mDataValueValue, "DataValue", mDatabase.mXmlNamespace));
     }
     if (mReferencePath > 0)
     {
         xml.AppendChild(ReferencePath.GetXML(xml.OwnerDocument, "ReferencePath", this, processed));
     }
 }