User Profile
Collapse
-
I used xml.dom.minidom .. -
Can Wxpython code be embedded in HTML
Hello all,
I was wondering whether wxpython code can be embedded in HTML code.
I saw that We can do the converse i.e., we can write HTML code in wxpython code.
Jython is doing this favour with the help of Jython applets. But I want to work with wxpython.
I'm sure that some of them would have experienced the same problem.
Can you people suggest me some valuable solutions.
Thank you in advance. -
Sorry for the late reply.
That was really great.
I found one solution to check whether the node exists by using the getElementsByta gName method.I used this simple if statement to getrid of index error.
if(len(dom.getE lementsByTagNam e(Name))!=0):
print "already exists"
This worked well.
Thanks for your valuable suggestions.
I will try to follow your suggestions to avoid this type of ...Leave a comment:
-
checking whether an xml.dom node already exists
Hello all,
I'm working on minidom.
My goal is to see whether an element already exists in the xml file before adding. I was using getElementsByTa gName() to check weather the element already exists.
The code looks something like this:
Value = argv[1]...Code:a = dom.getElementsByTagName(Name)[0].childNodes[0].nodeValue if (a!=Value): add elements. else: return -
adding node to an xml file
Hello everybody,
I'm a starter to Python programming.
My goal is to first read an xml file and add the elements to the dictionary.
Note that xml file I'm using is a simple file without any attributes...
e.x.
<?xml?>
<AR>
<BD>Data</BD>
</AR>
Next step is to add a node to the xml file and verify if the node exists in the xml file or not.
Can...
No activity results to display
Show More
Leave a comment: