Beispiel #1
0
        public static string BuildPhotosXml(PhotoInfo[] photos)
        {
            XmlTextWriter writer = XmlAPI.CreateWriter();

            WritePhotos(writer, photos, photosTag);
            return(XmlAPI.FlushWriter(writer));
        }
Beispiel #2
0
        public static string BuildNotesXml(NoteInfo[] notes)
        {
            XmlTextWriter writer = XmlAPI.CreateWriter();

            WriteNotes(writer, notes, notesTag);
            return(XmlAPI.FlushWriter(writer));
        }
Beispiel #3
0
        public static string BuildCustomersXml(CustomerInfo[] customers)
        {
            XmlTextWriter writer = XmlAPI.CreateWriter();

            writer.WriteStartElement(customersTag);
            foreach (CustomerInfo customer in customers)
            {
                WriteCustomerXml(writer, customer);
            }
            writer.WriteEndElement();
            return(XmlAPI.FlushWriter(writer));
        }
Beispiel #4
0
        public static string BuildUsersXml(UserInfo[] users)
        {
            XmlTextWriter writer = XmlAPI.CreateWriter();

            writer.WriteStartElement(usersTag);
            foreach (UserInfo user in users)
            {
                writeUserXml(writer, user);
            }
            writer.WriteEndElement();
            return(XmlAPI.FlushWriter(writer));
        }
Beispiel #5
0
        public static string BuildNoteTypesXml(NoteTypeInfo[] noteTypes)
        {
            XmlTextWriter writer = XmlAPI.CreateWriter();

            writer.WriteStartElement(noteTypesTag);
            foreach (NoteTypeInfo noteType in noteTypes)
            {
                writeNoteTypeXml(writer, noteType);
            }
            writer.WriteEndElement();
            return(XmlAPI.FlushWriter(writer));
        }