On Wed, Mar 11, 2015 at 07:13:42PM +0000, Jan Vilhuber wrote: > Ah. I think I'm building it wrong: > > if args.attendee: > attendees = ApplicationData.Attendees() > for email in args.attendee: > attendee = ApplicationData.AttendeeType1(Email=email) > attendees.add_Attendee(attendee) > app.add_Attendees(attendees) > > This seems to give me the correct output.
Jan, Sounds like you have what you need. I'm on the road right now, enjoying the sights and the vegetation and looking at a variety of different neighborhoods in Los Angeles, CA (lots of Agaves of different kinds and also many varieties of cactus). But, I'll try to take a look at your XML schemas when I'm back on Friday. Dave > > On Mar 11, 2015, at 1:01 PM, Jan Vilhuber <[1]j...@nachocove.com> > wrote: > > Hi Dave! > I just noticed something odd about the XML generated by my script: > <ApplicationData> > <Timezone>EO8AAFUAUwAvAFAAYQBjAGkAZgBpAGMAAAAAAAAAAAAAAAAAAAAAAAAAAA > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADfBwMABwAIAAoAAAAAAAAAAAAAAFUAUwAvAFAAY > QBjAGkAZgBpAGMAIABEAFMAVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > AADfBwsABwABAAkAAAAAAAAAAAAAAA==</Timezone> > <OrganizerName>Jan Vilhuber</OrganizerName> > <OrganizerEmail>[2]j...@nachocove.com</OrganizerEmail> > <DtStamp>20150311T181709Z</DtStamp> > <EndTime>20150101T090000Z</EndTime> > <Location>Bar Down The Street</Location> > <StartTime>20150101T080000Z</StartTime> > <UID>ed455c137cd6466ab8c641b0a5810fa0</UID> > <Attendees> > <Email>[3]loadt...@d2.officeburrito.com</Email> > </Attendees> > <Attendees> > <Email>[4]j...@d2.officeburrito.com</Email> > </Attendees> > <Recurrence> > <Type>0</Type> > </Recurrence> > </ApplicationData> > Notice that `Attendees' is there multiple times, when I was expecting a > single Attendees, with multiple Attendee sub-elements. Similarly there > should be a `Recurrences' with multiple `Recurrence' entries (though I > suspect that's a bug on my part). > The code that does this looks roughly like this: > app = ApplicationData.ApplicationData() > attendee = ApplicationData.AttendeeType1(Email=email) > app.Attendees.append(attendee) > I've attached some of the relevant xdd's for your pleasure :) The > Calendar.xsd is straight from Microsoft. The ApplicationData is one of > my own doing, and is just a convenient wrapper for the Calendar stuff. > jan > <Calendar.xsd><ApplicationData.xsd> > > References > > 1. mailto:j...@nachocove.com > 2. mailto:j...@nachocove.com > 3. mailto:loadt...@d2.officeburrito.com > 4. mailto:j...@d2.officeburrito.com -- Dave Kuhlman http://www.davekuhlman.org ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users