xmliftest.py
Go to the documentation of this file.
00001 from .. import genxmlif
00002 from ..genxmlif.xmlifODict import odict
00003 
00004 xmlIf = genxmlif.chooseXmlIf(genxmlif.XMLIF_ELEMENTTREE)
00005 xmlTree = xmlIf.createXmlTree(None, "testTree", {"rootAttr1":"RootAttr1"})
00006 xmlRootNode = xmlTree.getRootNode()
00007 myDict = odict( (("childTag1","123"), ("childTag2","123")) )
00008 xmlRootNode.appendChild("childTag", myDict)
00009 xmlRootNode.appendChild("childTag", {"childTag1":"123456", "childTag2":"123456"})
00010 xmlRootNode.appendChild("childTag", {"childTag1":"123456789", "childTag3":"1234", "childTag2":"123456789"})
00011 xmlRootNode.appendChild("childTag", {"childTag1":"1", "childTag2":"1"})
00012 print xmlTree.printTree(prettyPrint=1)
00013 print xmlTree
00014 print xmlTree.getRootNode()


mavlink
Author(s): Lorenz Meier
autogenerated on Thu Jun 6 2019 19:01:57