User Profile

Collapse

Profile Sidebar

Collapse
gundarap
gundarap
Last Activity: Nov 10 '07, 06:34 PM
Joined: Aug 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I used xml.dom.minidom ..
    See more | Go to post

    Leave a comment:


  • gundarap
    started a topic Can Wxpython code be embedded in HTML

    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.
    See more | Go to post

  • 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 ...
    See more | Go to post

    Leave a comment:


  • gundarap
    started a topic checking whether an xml.dom node already exists

    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
    ...
    See more | Go to post
    Last edited by bartonc; Aug 27 '07, 08:54 AM. Reason: Added [CODE][/CODE] tags.

  • gundarap
    started a topic adding node to an xml file

    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...
    See more | Go to post
No activity results to display
Show More
Working...