Dear generateDS-users,
Please excuse also my naive questions, I have only been using python for two
days. I have been using generateDS on my very simple schema with great
success and have been able to parse my test xml files too.
One thing I would like to be able to do is create an xml file that conforms
to my schema from scratch, without having parsed any file. For now I have
just been using parseString() to create my root object like so-
rootObject = busbranch.parseString('<Network name=""/>')
, but is there is a more elegant way? To this and my xml files I hope then
to add and insert new child nodes, but I am unsure how. I see that
.addChild() takes an argument 'value' and I imagine this is the child I wish
to add, so I guess my question is how do I create this child object? If you
can give any other explanations or examples on how to use the various
methods available to the rootObj, that too would be very much appreciated.
Again, Dave please excuse my very simple questions. You seem to have many
more interesting things to do with your time. Thank you for generateDS, I
was using JAXB before and having this has made for a very quick change to
python. I look forward to using its other, more advanced, features in the
future.
Regards,
Richard
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users