On Mon, Nov 25, 2013 at 12:04:49PM -0500, Deepak Agrawal wrote: > Dave, > If I have a DS generated by this method. How do I generate an xml file > after adding values in the DS
Deepak, Basically, you call the "export" method on the object at the root of your tree of objects. Look toward the bottom of the file you generated using the -o or the -s command line option. There is a function definition named "parse": def parse(inFileName, silence=False): There is code in that function that you can use as a sample. And if, instead of writing to a file, you need to capture the serialized XML as a string, then use and instance of StringIO.StringIO (or cStringIO) as your file object. See: http://docs.python.org/2/library/stringio.html#module-StringIO http://docs.python.org/2/library/stringio.html#module-cStringIO Hope this helps. Dave > > --- > Sincerely > Deepak Agrawal > On Sun, Nov 24, 2013 at 2:56 PM, Deepak Agrawal > <[1]agrawal.deepan...@gmail.com> wrote: > > Thanks Dave...It's running perfectly now. > On Sun, Nov 24, 2013 at 1:02 PM, Dave Kuhlman > <[2]dkuhl...@davekuhlman.org> wrote: > > -o outsuper.py -s outsub.py --super outsuper schema01.xsd > > --- > Sincerely > Deepak Agrawal > > References > > 1. mailto:agrawal.deepan...@gmail.com > 2. mailto:dkuhl...@davekuhlman.org > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > generateds-users mailing list > generateds-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/generateds-users -- Dave Kuhlman http://www.davekuhlman.org ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users