Example #1
0
        // XML

        protected override void ExportXml(XmlWriter xw)
        {
            foreach (string s in store.Keys)
            {
                Result r = this[s];
                r.ExportXml(xw, s);
            }
        }
Example #2
0
        protected override void ExportXml(XmlWriter xw)
        {
            ArrayList fields = GetFieldData();

            foreach (FieldInfo fi in fields)
            {
                xw.WriteStartElement("field");
                xw.WriteAttributeString("name", fi.Name);
                xw.WriteAttributeString("decl_type", fi.DeclaringType.FullName);
                Result r = fi.GetValue(this) as Result;

                if (r == null)
                {
                    xw.WriteAttributeString("is_null", "true");
                }
                else
                {
                    r.ExportXml(xw, "");
                }

                xw.WriteEndElement();
            }
        }
Example #3
0
	    bool WriteResult (string elt, int aid, Result r)
	    {
		tw.WriteStartElement (elt);
		if (aid >= 0)
		    tw.WriteAttributeString ("arg", aid.ToString ());
		r.ExportXml (tw, "r");
		tw.WriteEndElement ();
		return false;
	    }