Regarding add method in microdom.lmx
Hi every one,
This is raj.. I am new to twisted python.
I have created a xml and want to add some content to it but i am unable to edit the xml file..
I tried in this way.....
..............................................................
Method(self, X,Y,Z,xmlfile=None)
xmlfile = xmlfile or self.xmlfile
.
.
jump = microdom.lmx('jumping')
jump.add("jumpat", xjump=X, yjump=Y)
save_xml(jump.node,xmlfile)
then the xml file is showing
<jumping>
</jumping>
but not the jumpat tag and content
...............................................................
if i try in this below manner
......................................
Method(self, X,Y,Z,xmlfile=None)
xmlfile = xmlfile or self.xmlfile
.
.
jump = microdom.lmx('jumping')
jump.add("jumpat")
save_xml(jump.node,xmlfile)
then xml file is showing
<jumping>
<jumpat>
</jumpat>
</jumping>
..................................
Can any one help me how to add those X,Y,Z values in that?
I wanted the out put to be stored as below
<jumping>
participants (1)
-
Raj kumar