Example #1
0
        internal void WriteXml(XmlWriter writer)
        {
            writer.WriteAttributeString("classCode", ClassCode);

            its.TemplateSignpost(templateId + "#" + templateText, writer);
            writeXML(writer);

            if (associatedPerson != null)
            {
                writer.WriteStartElement("associatedPerson");
                associatedPerson.TemplateId   = templateId;
                associatedPerson.TemplateText = "associatedPerson";
                associatedPerson.WriteXml(writer);
                writer.WriteEndElement();
            }

            if (scopingOrganisation != null)
            {
                writer.WriteStartElement("scopingOrganization");
                scopingOrganisation.TemplateId   = templateId;
                scopingOrganisation.TemplateText = "scopingOrganization";
                scopingOrganisation.WriteXml(writer);
                writer.WriteEndElement();
            }
        }
Example #2
0
        internal void WriteXml(XmlWriter writer)
        {
            writer.WriteAttributeString("classCode", ClassCode);

            its.TemplateSignpost(templateId + "#" + templateText, writer);
            writeXML(writer);

            if (assignedPerson != null)
            {
                writer.WriteStartElement("relatedPerson");
                assignedPerson.TemplateId   = templateId;
                assignedPerson.TemplateText = "relationshipHolder";
                assignedPerson.WriteXml(writer);
                writer.WriteEndElement();
            }

            if (representedOrganisation != null)
            {
                writer.WriteStartElement("representedOrganisation");
                representedOrganisation.TemplateId   = templateId;
                representedOrganisation.TemplateText = "representedOrganisation";
                representedOrganisation.WriteXml(writer);
                writer.WriteEndElement();
            }
        }
Example #3
0
        internal void WriteXml(XmlWriter writer)
        {
            writer.WriteAttributeString("classCode", ClassCode);

            its.TemplateSignpost(templateId + "#" + templateText, writer);
            writeXML(writer);

            if (subjectPerson != null)
            {
                writer.WriteStartElement("subject");
                subjectPerson.TemplateId   = templateId;
                subjectPerson.TemplateText = "subject";
                subjectPerson.WriteXml(writer);
                writer.WriteEndElement();
            }
        }