Beispiel #1
0
 /// <summary>
 /// Processes this element and all child elements into an XmlWriter.
 /// </summary>
 public virtual void OutputXml(XmlWriter writer)
 {
     if ((null == writer))
     {
         throw new ArgumentNullException("writer");
     }
     writer.WriteStartElement("HelpCollectionRef", "http://wixtoolset.org/schemas/v4/wxs/vs");
     if (this.idFieldSet)
     {
         writer.WriteAttributeString("Id", this.idField);
     }
     for (IEnumerator enumerator = this.children.GetEnumerator(); enumerator.MoveNext();)
     {
         ISchemaElement childElement = ((ISchemaElement)(enumerator.Current));
         childElement.OutputXml(writer);
     }
     writer.WriteEndElement();
 }
Beispiel #2
0
 /// <summary>
 /// Processes this element and all child elements into an XmlWriter.
 /// </summary>
 public virtual void OutputXml(XmlWriter writer)
 {
     if ((null == writer))
     {
         throw new ArgumentNullException("writer");
     }
     writer.WriteStartElement("HelpCollection", "http://wixtoolset.org/schemas/v4/wxs/vs");
     if (this.idFieldSet)
     {
         writer.WriteAttributeString("Id", this.idField);
     }
     if (this.descriptionFieldSet)
     {
         writer.WriteAttributeString("Description", this.descriptionField);
     }
     if (this.nameFieldSet)
     {
         writer.WriteAttributeString("Name", this.nameField);
     }
     if (this.suppressCustomActionsFieldSet)
     {
         if ((this.suppressCustomActionsField == YesNoType.no))
         {
             writer.WriteAttributeString("SuppressCustomActions", "no");
         }
         if ((this.suppressCustomActionsField == YesNoType.yes))
         {
             writer.WriteAttributeString("SuppressCustomActions", "yes");
         }
     }
     for (IEnumerator enumerator = this.children.GetEnumerator(); enumerator.MoveNext();)
     {
         ISchemaElement childElement = ((ISchemaElement)(enumerator.Current));
         childElement.OutputXml(writer);
     }
     writer.WriteEndElement();
 }